Skip to content

Instantly share code, notes, and snippets.

TestCase("AjaxTest", sinon.testCase({
testDefferredJSONResponse: function () {
var target = this;
this.server.respondWith(
"POST", /post.*/,
[200, { "Content-Type": "application/json" },
'{ "Exception":"", "Success":true, "ValidationResult":"" }']);
$.post(