diff --git a/README.md b/README.md index 6ea9a3641..7769334c0 100644 --- a/README.md +++ b/README.md @@ -238,7 +238,7 @@ describe("Pact", () => { // (5) validate the interactions you've registered and expected occurred // this will throw an error if it fails telling you what went wrong - expect(provider.verify()).to.not.throw() + expect(() => provider.verify()).to.not.throw() }) })