From afb6aa9ed266c652b4f508f101fe32bb0e7ce7b3 Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Sun, 30 Jun 2019 10:34:19 +1000 Subject: [PATCH 1/2] fix: readme example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 38e46a220..6ea9a3641 100644 --- a/README.md +++ b/README.md @@ -230,7 +230,7 @@ describe("Pact", () => { // (4) write your test(s) it("generates a list of TODOs for the main screen", () => { const todoApp = new TodoApp() - todoApp + return todoApp .getProjects() // <- this method would make the remote http call .then(projects => { expect(projects).to.be.a("array") From a084c5de996cdb5d42c2c35ef0efa2dc1e7987e1 Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Sun, 30 Jun 2019 10:58:27 +1000 Subject: [PATCH 2/2] fix: expect provider verify needs to be a function --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }) })