Skip to content

Commit

Permalink
fix(tests): update nock to 9.1.x and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Feb 20, 2018
1 parent 05b5e54 commit dd38156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"loader-utils": "^1.1.0",
"mocha": "~5.0.0",
"mocha-lcov-reporter": "^1.3.0",
"nock": "^8.2.2",
"nock": "^9.1.6",
"nyc": "^11.2.0",
"proxyquire": "^1.8.0",
"rimraf": "^2.6.2",
Expand Down
6 changes: 1 addition & 5 deletions src/dsl/mockService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,7 @@ describe("MockService", () => {
const mock = new MockService(undefined, undefined, 1234);
it("should not write the consumer and provider details into the pact", (done) => {
nock(mock.baseUrl)
.post(/pact$/, {
consumer: undefined,
pactfile_write_mode: "overwrite",
provider: undefined,
}).reply(200);
.post(/pact$/).reply(200);
expect(mock.writePact()).to.eventually.be.fulfilled.notify(done);
});
});
Expand Down

0 comments on commit dd38156

Please sign in to comment.