QA/Mozmill Test Automation/Test Modules Refactor: Difference between revisions

Line 117: Line 117:
Discussion [http://mozqa.ietherpad.com/refactor-discussion here]
Discussion [http://mozqa.ietherpad.com/refactor-discussion here]


* We should always use the triple operator to not experience strange behavior (===/!== instead of ==/!=)
* We should always use the triple operator to not experience strange behavior  
* Variables for imported modules have to start with a capital letter (i.e. var Tabs = require(".../tabs")
** ===/!== instead of ==/!=
* Variables for imported modules have to start with a capital letter
** i.e. var Tabs = require(".../tabs")
* Class names have to start with a capital letter
* Class names have to start with a capital letter
* setupModule(module) and teardownModule(module) have to specify the module parameter.
* setupModule(module) and teardownModule(module) have to specify the module parameter
Confirmed users
14,525

edits