Skip to content

Commit

Permalink
test: temporary disable test depending on external hosts
Browse files Browse the repository at this point in the history
Related #1077
  • Loading branch information
gr2m committed May 9, 2018
1 parent 5977cdf commit 8ce5be8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_intercept.js
Original file line number Diff line number Diff line change
Expand Up @@ -2781,7 +2781,9 @@ test("allow unmocked option works with https", {skip: process.env.AIRPLANE}, fun
}).end();
});

test('allow unmocked post with json data', {skip: process.env.AIRPLANE}, function(t) {
// TODO: remove skip as part of https://github.com/node-nock/nock/issues/1077
// test('allow unmocked post with json data', {skip: process.env.AIRPLANE}, function(t) {
test('allow unmocked post with json data', {skip: true}, function(t) {
nock('https://httpbin.org', { allowUnmocked: true }).
get("/abc").
reply(200, "Hey!");
Expand All @@ -2798,7 +2800,9 @@ test('allow unmocked post with json data', {skip: process.env.AIRPLANE}, functio
});
});

test('allow unmocked passthrough with mismatched bodies', {skip: process.env.AIRPLANE}, function(t) {
// TODO: remove skip as part of https://github.com/node-nock/nock/issues/1077
// test('allow unmocked passthrough with mismatched bodies', {skip: process.env.AIRPLANE}, function(t) {
test('allow unmocked passthrough with mismatched bodies', {skip: true}, function(t) {
nock('http://httpbin.org', { allowUnmocked: true }).
post("/post", {some: 'otherdata'}).
reply(404, "Hey!");
Expand Down

0 comments on commit 8ce5be8

Please sign in to comment.