Skip to content

Commit

Permalink
test: intercept test fix
Browse files Browse the repository at this point in the history
https://example.org/test returns a 404 now
  • Loading branch information
gr2m committed Oct 20, 2017
1 parent 62e7566 commit e4b0958
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_intercept.js
Expand Up @@ -61,7 +61,7 @@ test("allow unmocked works (2)", function(t) {
});
});

test("allow unmocked works after one interceptor is removed", function(t) {
test("allow unmocked works after one interceptor is removed", {only: true}, function(t) {
nock("https://example.org",{allowUnmocked: true}).
get("/").
reply(200, "Mocked");
Expand All @@ -70,8 +70,11 @@ test("allow unmocked works after one interceptor is removed", function(t) {
t.error(err);
t.equal(body, 'Mocked');

mikealRequest("https://example.org/test", function(err, resp, body) {
mikealRequest("https://example.org/unmocked", function(err, resp, body) {
t.error(err);
console.log(`\nbody ==============================`)
console.log(body)

t.assert(~body.indexOf('Example Domain'));
t.end();
});
Expand Down

0 comments on commit e4b0958

Please sign in to comment.