pact-foundation / jest-pact

A Pact adaptor for to allow you to easily run tests with Jest
https://pact.io
MIT License
81 stars 12 forks source link

Readme example - incorrect method name #202

Closed jbrangwyn closed 3 years ago

jbrangwyn commented 3 years ago

Hi,

Thanks for putting this together, it's been really useful.

I think this part of the readme example: it('returns server health', () => // implicit return again client.health().then(health => { expect(health).toEqual('up'); }));

Should in fact be: it('returns server health', () => // implicit return again client.getHealth().then(health => { expect(health).toEqual('up'); }));

TimothyJones commented 3 years ago

You’re so right! Good catch. And thanks for the kind words :)

TimothyJones commented 3 years ago

Fixed!