We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 058ab6f commit e57ef2bCopy full SHA for e57ef2b
1 file changed
README.md
@@ -230,15 +230,15 @@ describe("Pact", () => {
230
// (4) write your test(s)
231
it("generates a list of TODOs for the main screen", () => {
232
const todoApp = new TodoApp()
233
- todoApp
+ return todoApp
234
.getProjects() // <- this method would make the remote http call
235
.then(projects => {
236
expect(projects).to.be.a("array")
237
expect(projects).to.have.deep.property("projects[0].id", 1)
238
239
// (5) validate the interactions you've registered and expected occurred
240
// this will throw an error if it fails telling you what went wrong
241
- expect(provider.verify()).to.not.throw()
+ expect(() => provider.verify()).to.not.throw()
242
})
243
244
0 commit comments