Skip to content

Commit

Permalink
fix(jest): update jest example to be compatible with v21.x.x (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Dec 8, 2017
1 parent 315946e commit 7fabfc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/jest/__tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe("Dog's API", () => {
afterAll(() => provider.finalize())

describe("works", () => {
beforeAll(done => {
beforeAll(() => {
const interaction = {
state: 'i have a list of projects',
uponReceiving: 'a request for projects',
Expand All @@ -45,7 +45,7 @@ describe("Dog's API", () => {
body: EXPECTED_BODY
}
}
provider.addInteraction(interaction).then(done, done)
return provider.addInteraction(interaction)
})

// add expectations
Expand Down
2 changes: 1 addition & 1 deletion examples/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
},
"devDependencies": {
"axios": "^0.14.0",
"jest-cli": "^15.1.1"
"jest-cli": "^21.0.0"
}
}

0 comments on commit 7fabfc4

Please sign in to comment.