Adding tests for network.cookieCheck, user.getAssertion and user.getSilentAssertion.
* network.js - add cookiesEnabledOverride, a flag that forces the cookie status for testing. * testHelpers.js - add testUndefined and testNotUndefined. * user.js - fix documentation. in checkAuthentication, if the user is not authenticated, call the callback with false instead of undefined.
Showing
- resources/static/shared/network.js 10 additions, 0 deletionsresources/static/shared/network.js
- resources/static/shared/user.js 5 additions, 2 deletionsresources/static/shared/user.js
- resources/static/test/cases/shared/network.js 16 additions, 1 deletionresources/static/test/cases/shared/network.js
- resources/static/test/cases/shared/user.js 63 additions, 5 deletionsresources/static/test/cases/shared/user.js
- resources/static/test/testHelpers/helpers.js 9 additions, 1 deletionresources/static/test/testHelpers/helpers.js
Loading
Please register or sign in to comment