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

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

diff --git a/test/javascripts/test_helper.js b/test/javascripts/test_helper.js
index 0e1abc2..6e3b767 100644
--- a/test/javascripts/test_helper.js
+++ b/test/javascripts/test_helper.js
@@ -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

GitHub sha: 6d02dd6d

1 Like