A platform for community discussion. Free, open, simple.
DEV: prevents Pretender Object to leak between tests (#7726)
Joffrey JAFFEUXfce34aa7990a
diff --git a/test/javascripts/test_helper.js b/test/javascripts/test_helper.jsindex 3fdeaaeaccb..ee3ee129d89 100644--- a/test/javascripts/test_helper.js+++ b/test/javascripts/test_helper.js@@ -155,6 +155,8 @@ QUnit.testDone(function() {server.shutdown();+ window.server = null;+// ensures any event not removed is not leaking between tests// most likely in intialisers, other places (controller, component...)// should be fixed in code