Skip to content

Commit e91588c

Browse files
author
Peter Törnhult
committed
fix(src): fix typo in error message
fix a typo in eachLike DSL matcher were comparison to < 1 would cause an error but error message said > 1 which is incorrect
1 parent c73e532 commit e91588c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dsl/matchers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports.eachLike = (content, opts) => {
4545
}
4646

4747
if (opts && (isNil(opts.min) || opts.min < 1)) {
48-
throw new Error('Error creating a Pact eachLike. Please provide opts.min that is > 1')
48+
throw new Error('Error creating a Pact eachLike. Please provide opts.min that is > 0')
4949
}
5050

5151
return {

0 commit comments

Comments
 (0)