Skip to content

Commit

Permalink
Merge pull request #50 from vwong/wait-for-remove-interactions-on-verify
Browse files Browse the repository at this point in the history
Wait for removeInteractions() on verify()
  • Loading branch information
mefellows committed May 15, 2017
2 parents 2a963e3 + f11f0eb commit 10594b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pact-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = (opts) => {
*/
verify: () => {
return mockService.verify()
.then(() => { mockService.removeInteractions() })
.then(() => mockService.removeInteractions())
.catch(e => {
// Properly format the error
console.error('')
Expand Down
2 changes: 1 addition & 1 deletion src/pact.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ module.exports = (opts) => {
*/
verify: () => {
return mockService.verify()
.then(() => { mockService.removeInteractions() })
.then(() => mockService.removeInteractions())
.catch(e => {
// Properly format the error
console.error('')
Expand Down

0 comments on commit 10594b9

Please sign in to comment.