mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: attempts to remove message bus callbacks between tests (#7715)
This commit is contained in:
@@ -166,6 +166,11 @@ QUnit.testDone(function() {
|
||||
appEvents.off(eventKey, listener.target, listener.fn);
|
||||
});
|
||||
});
|
||||
|
||||
// attempts to remove any subscribed message bug callback
|
||||
window.MessageBus.callbacks.forEach(function(callback) {
|
||||
window.MessageBus.unsubscribe(callback.channel, callback.func);
|
||||
});
|
||||
});
|
||||
|
||||
// Load ES6 tests
|
||||
|
||||
Reference in New Issue
Block a user