mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03: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
2 changed files with 4 additions and 2 deletions
|
@ -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 a new issue