Cleans up browser state:
- Cookies
- LocalStorage
- SessionStorage
To ensure that unit tests clean up after themselves. Includes a snitch
method to determine when tests are not cleaning up correctly.
- Browser globals
- RequireJS
Removes all cookies, all LocalStorage and SessionStorage items
Removes all cookies
Removes all LocalStorage items
Removes all SessionStorage items
Throws an error if there are any items left in cookies, LocalStorage or SessionStorage. Intended to be used in a unit test afterEach lifecycle method.
Run npm run test
to run tests using karma.
Run npm run test:report
to open coverage report
Run npm run lint
to run linting
Run npm run
to view full list of available script tasks