mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Category List and Topic View Integration Test
This commit is contained in:
parent
3775a9c11d
commit
3257bef387
7 changed files with 43 additions and 4 deletions
|
@ -51,6 +51,14 @@ sinon.config = {
|
|||
useFakeServer: false
|
||||
};
|
||||
|
||||
window.assetPath = function() { return null };
|
||||
|
||||
var oldAjax = $.ajax;
|
||||
$.ajax = function() {
|
||||
console.error("Discourse.Ajax called in test environment (" + arguments[0] + ")");
|
||||
return oldAjax.apply(this, arguments);
|
||||
};
|
||||
|
||||
// Trick JSHint into allow document.write
|
||||
var d = document;
|
||||
d.write('<div id="qunit-scratch" style="display:none"></div>');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue