mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge pull request #1950 from vector-im/rav/clear_test_localstorage
Make sure that we clear localstorage before *all* tests
This commit is contained in:
commit
4a0a911f3b
@ -59,8 +59,6 @@ describe('loading:', function () {
|
|||||||
|
|
||||||
windowLocation = null;
|
windowLocation = null;
|
||||||
matrixChat = null;
|
matrixChat = null;
|
||||||
|
|
||||||
window.localStorage.clear();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function() {
|
afterEach(function() {
|
||||||
|
@ -12,6 +12,10 @@ module.exports.beforeEach = function(context) {
|
|||||||
console.log();
|
console.log();
|
||||||
console.log(desc);
|
console.log(desc);
|
||||||
console.log(new Array(1 + desc.length).join("="));
|
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
Block a user