Unit Test Cleanup!
* Simplify the signature for checkAuthenticationAndSync by removing onSuccess. * Simplify the user unit tests by using failureCheck. * Add testHelpers.failureCheck which came from network.js * Cleanup the user unit tests a ton.
Showing
- resources/static/dialog/controllers/actions.js 1 addition, 1 deletionresources/static/dialog/controllers/actions.js
- resources/static/dialog/controllers/required_email.js 8 additions, 5 deletionsresources/static/dialog/controllers/required_email.js
- resources/static/dialog/resources/internal_api.js 4 additions, 4 deletionsresources/static/dialog/resources/internal_api.js
- resources/static/shared/user.js 52 additions, 68 deletionsresources/static/shared/user.js
- resources/static/test/index.html 1 addition, 1 deletionresources/static/test/index.html
- resources/static/test/qunit/shared/network_unit_test.js 2 additions, 35 deletionsresources/static/test/qunit/shared/network_unit_test.js
- resources/static/test/qunit/shared/user_unit_test.js 138 additions, 216 deletionsresources/static/test/qunit/shared/user_unit_test.js
- resources/static/test/qunit/testHelpers/helpers.js 34 additions, 0 deletionsresources/static/test/qunit/testHelpers/helpers.js
Loading
Please register or sign in to comment