Skip to content

Commit 09a9f03

Browse files
committed
fix(tests): update e2e tests with latest API
1 parent d43e363 commit 09a9f03

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

examples/e2e/test/consumer.spec.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ const path = require('path')
22
const chai = require('chai')
33
const chaiAsPromised = require('chai-as-promised')
44
const expect = chai.expect
5-
const pact = require('../../../dist/pact')
6-
const Pact = pact.Pact
5+
const { Pact, Matchers } = require('../../../dist/pact');
76
const MOCK_SERVER_PORT = 1234
87
const LOG_LEVEL = process.env.LOG_LEVEL || 'WARN'
98

@@ -21,12 +20,7 @@ describe('Pact', () => {
2120
})
2221

2322
// Alias flexible matchers for simplicity
24-
const {
25-
somethingLike: like,
26-
term,
27-
eachLike,
28-
iso8601DateTimeWithMillis
29-
} = pact
23+
const { eachLike, like, term, iso8601DateTimeWithMillis } = Matchers;
3024

3125
// Animal we want to match :)
3226
const suitor = {

0 commit comments

Comments
 (0)