Move the requiredEmail checks from resources/state.js to controllers/dialog.js. Add more tests.
* Add the startExternalDependencies option when initializing the dialog controller, if set to false, no external dependencies are loaded. Used for testing. * Add a new test to check for script containing emails. * Add unit tests for tosURL and privacyURL. * Add a testHelpers.testErrorNotVisible * Removed the actions.js->doError and its tests, it is no longer used.
Showing
- resources/static/dialog/controllers/actions.js 0 additions, 14 deletionsresources/static/dialog/controllers/actions.js
- resources/static/dialog/controllers/dialog.js 28 additions, 7 deletionsresources/static/dialog/controllers/dialog.js
- resources/static/test/cases/controllers/actions.js 0 additions, 24 deletionsresources/static/test/cases/controllers/actions.js
- resources/static/test/cases/controllers/dialog.js 281 additions, 23 deletionsresources/static/test/cases/controllers/dialog.js
- resources/static/test/cases/resources/state.js 0 additions, 22 deletionsresources/static/test/cases/resources/state.js
- resources/static/test/testHelpers/helpers.js 4 additions, 0 deletionsresources/static/test/testHelpers/helpers.js
- resources/views/test.ejs 1 addition, 0 deletionsresources/views/test.ejs
Loading
Please register or sign in to comment