mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08: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