Skip to content

Instantly share code, notes, and snippets.

@emdin
Created April 15, 2012 13:02
Show Gist options
  • Save emdin/2392667 to your computer and use it in GitHub Desktop.
Save emdin/2392667 to your computer and use it in GitHub Desktop.
Sinon.js fake server with filtering and auto-respond
var srv = sinon.fakeServer.create();
srv.respond(...); // here will be all your server's business logic
srv.autoRespond = true;
srv.autoRespondAfter = 500;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment