Mock ajax requests
This commit is contained in:
parent
f669429861
commit
8d39f09a68
@ -1,6 +1,15 @@
|
||||
var torque = require('../lib/torque');
|
||||
var providers = torque.providers;
|
||||
|
||||
window.XMLHttpRequest = function () {
|
||||
return {
|
||||
open: function () { },
|
||||
send: function () { },
|
||||
readyState: 4,
|
||||
responseText: {}
|
||||
}
|
||||
};
|
||||
|
||||
var json, url;
|
||||
QUnit.module('provider.json');
|
||||
QUnit.testStart(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user