DEV: Don't flush twice (#17462)

#save-water

`flushMap` is already called in `QUnit.testDone()`
This commit is contained in:
Jarek Radosz 2022-07-13 11:01:41 +02:00 committed by GitHub
parent 22b6d1b668
commit 4751ddedfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -22,7 +22,6 @@ import { _clearSnapshots } from "select-kit/components/composer-actions";
import { clearHTMLCache } from "discourse/helpers/custom-html";
import deprecated from "discourse-common/lib/deprecated";
import { restoreBaseUri } from "discourse-common/lib/get-url";
import { flushMap } from "discourse/services/store";
import { initSearchData } from "discourse/widgets/search-menu";
import { resetPostMenuExtraButtons } from "discourse/widgets/post-menu";
import { isEmpty } from "@ember/utils";
@ -153,7 +152,6 @@ export function testCleanup(container, app) {
});
}
flushMap();
localStorage.clear();
User.resetCurrent();
resetExtraClasses();