Greetings want a very basic unit test for some of the ajax requests of my application. http://jsfiddle.net/Orbifold/sqdzzvey/
I want to know what you use to mock endpoints in your applications like it is done here:
$.mockjax({
url: "/orbifold/api",
responseTime: 3000,
responseText: {
"version": "2.3.15"
}
});
I would like to have the same behavior without the need for jQuery but plain js. I would like result equivalent in any other framework. Please attach a working fiddle. I am not sure if this is possible or can only be done with qunit so please enlighten me.