Skip to content

Commit ce31f31

Browse files
committed
fix(test): fix promise resolution in test
1 parent ee1ddf0 commit ce31f31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pact.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ describe("Pact", () => {
307307
p.mockService = { writePact: writePactStub, removeInteractions: sandbox.stub() } as any as MockService;
308308
p.server = { delete: sandbox.stub(PactServer.prototype, "delete").rejects() } as any;
309309

310-
return expect(p.finalize()).to.eventually.be.rejected;
310+
return expect(p.finalize)
311+
.to.throw(Error);
311312
});
312313
});
313314
});

0 commit comments

Comments
 (0)