mirror of https://github.com/vector-im/riot-web
Merge pull request #1950 from vector-im/rav/clear_test_localstorage
Make sure that we clear localstorage before *all* testspull/1959/head
commit
4a0a911f3b
|
@ -59,8 +59,6 @@ describe('loading:', function () {
|
|||
|
||||
windowLocation = null;
|
||||
matrixChat = null;
|
||||
|
||||
window.localStorage.clear();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
|
|
|
@ -12,6 +12,10 @@ module.exports.beforeEach = function(context) {
|
|||
console.log();
|
||||
console.log(desc);
|
||||
console.log(new Array(1 + desc.length).join("="));
|
||||
|
||||
// some tests store things in localstorage. Improve independence of tests
|
||||
// by making sure that they don't inherit any old state.
|
||||
window.localStorage.clear();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue