New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD] template: PhantomJS Test Sample #215
[ADD] template: PhantomJS Test Sample #215
Conversation
I think we should have branches 8.0, 9.0 of MT to accommodate all of these changes to all versions. Can you please bring the topic to mailing list? About this, isn't needed a Python file to launch the test? |
@pedrobaeza you are correct that a Python file is also required - we already had that part in our template for some reason. Writing the email now |
odoo.define_section('module_name', ['module_name.ExportedObject'], function(test) { | ||
"use strict"; | ||
|
||
test('It should demonstrate a PhantomJS test', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please specify that this is for backend tests.
function(assert, ExportedObject) { | ||
var expect = 'Expected Return', | ||
result = new ExportedObject(); | ||
assertStrictEqual( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this must be assert.assertStrictEqual
, right?
* Change description to include that it is for web/backend * Fix assertion on no object
1ed89cf
to
19a5b41
Compare
Thanks @yajo - updated |
👍 |
Milestone (Odoo version)
Module(s)
Fixes / new features