mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Allow the clear callbacks to execute in acceptance tests
This commit is contained in:
parent
73bce82c82
commit
035e63c81f
@ -126,7 +126,6 @@ export function acceptance(name, options) {
|
||||
initSearchData();
|
||||
resetDecorators();
|
||||
resetPostCookedDecorators();
|
||||
resetWidgetCleanCallbacks();
|
||||
resetOneboxCache();
|
||||
resetCustomPostMessageCallbacks();
|
||||
Discourse._runInitializer("instanceInitializers", function(
|
||||
@ -138,6 +137,9 @@ export function acceptance(name, options) {
|
||||
}
|
||||
});
|
||||
Discourse.reset();
|
||||
|
||||
// We do this after reset so that the willClearRender will have already fired
|
||||
resetWidgetCleanCallbacks();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user