Skip to content

Commit

Permalink
fix(tests): update e2e tests with latest API
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Dec 6, 2017
1 parent d43e363 commit 09a9f03
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions examples/e2e/test/consumer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ const path = require('path')
const chai = require('chai')
const chaiAsPromised = require('chai-as-promised')
const expect = chai.expect
const pact = require('../../../dist/pact')
const Pact = pact.Pact
const { Pact, Matchers } = require('../../../dist/pact');
const MOCK_SERVER_PORT = 1234
const LOG_LEVEL = process.env.LOG_LEVEL || 'WARN'

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

// Alias flexible matchers for simplicity
const {
somethingLike: like,
term,
eachLike,
iso8601DateTimeWithMillis
} = pact
const { eachLike, like, term, iso8601DateTimeWithMillis } = Matchers;

// Animal we want to match :)
const suitor = {
Expand Down

0 comments on commit 09a9f03

Please sign in to comment.