From 7fabfc4a52682c75268c4a17e6bfec9d36d9e8d5 Mon Sep 17 00:00:00 2001 From: Matt Fellows Date: Fri, 8 Dec 2017 15:32:35 +1100 Subject: [PATCH] fix(jest): update jest example to be compatible with v21.x.x (#132) --- examples/jest/__tests__/index.spec.js | 4 ++-- examples/jest/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/jest/__tests__/index.spec.js b/examples/jest/__tests__/index.spec.js index 34832b216..da98d0118 100644 --- a/examples/jest/__tests__/index.spec.js +++ b/examples/jest/__tests__/index.spec.js @@ -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', @@ -45,7 +45,7 @@ describe("Dog's API", () => { body: EXPECTED_BODY } } - provider.addInteraction(interaction).then(done, done) + return provider.addInteraction(interaction) }) // add expectations diff --git a/examples/jest/package.json b/examples/jest/package.json index e0faff2ae..bd7bb9e58 100644 --- a/examples/jest/package.json +++ b/examples/jest/package.json @@ -12,6 +12,6 @@ }, "devDependencies": { "axios": "^0.14.0", - "jest-cli": "^15.1.1" + "jest-cli": "^21.0.0" } }