DEV: attempts to remove message bus callbacks between tests (#7715)
This commit is contained in:
parent
c462c2f271
commit
6d02dd6d8c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue