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();
|
initSearchData();
|
||||||
resetDecorators();
|
resetDecorators();
|
||||||
resetPostCookedDecorators();
|
resetPostCookedDecorators();
|
||||||
resetWidgetCleanCallbacks();
|
|
||||||
resetOneboxCache();
|
resetOneboxCache();
|
||||||
resetCustomPostMessageCallbacks();
|
resetCustomPostMessageCallbacks();
|
||||||
Discourse._runInitializer("instanceInitializers", function(
|
Discourse._runInitializer("instanceInitializers", function(
|
||||||
@ -138,6 +137,9 @@ export function acceptance(name, options) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
Discourse.reset();
|
Discourse.reset();
|
||||||
|
|
||||||
|
// We do this after reset so that the willClearRender will have already fired
|
||||||
|
resetWidgetCleanCallbacks();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user