mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
update message bus for .stop() support, stop the message bus during test
This commit is contained in:
@ -93,6 +93,9 @@ $.ajax = function() {
|
||||
return oldAjax.apply(this, arguments);
|
||||
};
|
||||
|
||||
// Stop the message bus so we don't get ajax calls
|
||||
Discourse.MessageBus.stop();
|
||||
|
||||
// Trick JSHint into allow document.write
|
||||
var d = document;
|
||||
d.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>');
|
||||
|
Reference in New Issue
Block a user