mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 14:01:14 +08:00
DEV: prevents post-cooked decorators to leak between tests (#7744)
This commit is contained in:
@ -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 { resetDecorators as resetPostCookedDecorators } from "discourse/widgets/post-cooked";
|
||||
import { resetCache as resetOneboxCache } from "pretty-text/oneboxer";
|
||||
import { resetCustomPostMessageCallbacks } from "discourse/controllers/topic";
|
||||
|
||||
@ -124,6 +125,7 @@ export function acceptance(name, options) {
|
||||
clearRewrites();
|
||||
initSearchData();
|
||||
resetDecorators();
|
||||
resetPostCookedDecorators();
|
||||
resetOneboxCache();
|
||||
resetCustomPostMessageCallbacks();
|
||||
Discourse.reset();
|
||||
|
Reference in New Issue
Block a user