Some light cleanup and refactoring.
* Add a unit test harness for is_this_your_computer * When the user authenticates, set them as seen. * In storage.js, Use an object to store the usersComputer info instead of arrays for developer grok. * Add storage.js->clearUsersComputerOwnershipStatus for testing. * Clean up user.js->logout a little bit. * Completely clear localStorage between every test. * Add tests to check for when the user should see the "is this your computer" screen.
Showing
- resources/static/dialog/controllers/is_this_your_computer.js 10 additions, 7 deletionsresources/static/dialog/controllers/is_this_your_computer.js
- resources/static/shared/network.js 3 additions, 0 deletionsresources/static/shared/network.js
- resources/static/shared/storage.js 55 additions, 21 deletionsresources/static/shared/storage.js
- resources/static/shared/user.js 4 additions, 5 deletionsresources/static/shared/user.js
- resources/static/test/cases/controllers/is_this_your_computer.js 50 additions, 0 deletions...es/static/test/cases/controllers/is_this_your_computer.js
- resources/static/test/cases/resources/state.js 43 additions, 17 deletionsresources/static/test/cases/resources/state.js
- resources/static/test/testHelpers/helpers.js 8 additions, 2 deletionsresources/static/test/testHelpers/helpers.js
- resources/views/test.ejs 2 additions, 0 deletionsresources/views/test.ejs
Loading
Please register or sign in to comment