DEV: attempts to remove message bus callbacks between tests (#7715)

This commit is contained in:
Joffrey JAFFEUX 2019-06-06 12:59:02 +02:00 committed by GitHub
parent c462c2f271
commit 6d02dd6d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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