DEV: Fix localStorage test leakage (#17917)

We weren't clearing the store in all cases.
This commit is contained in:
Jarek Radosz 2022-08-15 03:33:25 +02:00 committed by GitHub
parent 3a21618e4e
commit afaa2d5417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,6 @@ export function testCleanup(container, app) {
});
}
localStorage.clear();
User.resetCurrent();
resetExtraClasses();
clearOutletCache();

View File

@ -319,6 +319,7 @@ export default function setupTests(config) {
flushMap();
MessageBus.unsubscribe("*");
localStorage.clear();
});
if (getUrlParameter("qunit_disable_auto_start") === "1") {