Mock ajax requests

This commit is contained in:
rubenmoya 2017-11-07 12:55:09 +01:00
parent f669429861
commit 8d39f09a68

View File

@ -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() {