DEV: reset widget clean callback between tests (#7761)

This commit is contained in:
Joffrey JAFFEUX
2019-06-12 17:49:02 +02:00
committed by GitHub
parent 9daba50d48
commit 19ca2d4772
2 changed files with 7 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ import { flushMap } from "discourse/models/store";
import { clearRewrites } from "discourse/lib/url";
import { initSearchData } from "discourse/widgets/search-menu";
import { resetDecorators } from "discourse/widgets/widget";
import { resetWidgetCleanCallbacks } from "discourse/components/mount-widget";
import { resetDecorators as resetPostCookedDecorators } from "discourse/widgets/post-cooked";
import { resetCache as resetOneboxCache } from "pretty-text/oneboxer";
import { resetCustomPostMessageCallbacks } from "discourse/controllers/topic";
@@ -126,6 +127,7 @@ export function acceptance(name, options) {
initSearchData();
resetDecorators();
resetPostCookedDecorators();
resetWidgetCleanCallbacks();
resetOneboxCache();
resetCustomPostMessageCallbacks();
Discourse.reset();