Skip to content

Instantly share code, notes, and snippets.

@jdzak
Created April 20, 2015 22:02
Show Gist options
  • Save jdzak/df7c445d7db10d3843c5 to your computer and use it in GitHub Desktop.
Save jdzak/df7c445d7db10d3843c5 to your computer and use it in GitHub Desktop.
var nockBack = require("nock").back;
var http = require("http");
nockBack.fixtures = __dirname + "/fixtures";
nockBack.setMode("record");
describe('x', function() {
it('y', function(done) {
nockBack('whatever.json', function(nockDone) {
http.get("http://tablexi.com", function() {
console.log(arguments);
});
nockDone();
done();
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment