Skip to content

Commit

Permalink
Fix Custom Matchers API example message property (#7426)
Browse files Browse the repository at this point in the history
* (fix) message should return a function

message should return a function and not a constant

* Update CHANGELOG.md
  • Loading branch information
patricknazar authored and rickhanlonii committed Nov 29, 2018
1 parent b502c07 commit 0b3a645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@

### Chore & Maintenance

- `[docs]` Fix message property in custom matcher example to return a function instead of a constant.
- `[jest-watcher]` Standardize filenames ([#7314](https://github.com/facebook/jest/pull/7314))
- `[jest-circus]` Standardize file naming in `jest-circus` ([#7301](https://github.com/facebook/jest/pull/7301))
- `[docs]` Add synchronous test.each setup ([#7150](https://github.com/facebook/jest/pull/7150))
Expand Down
2 changes: 1 addition & 1 deletion docs/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ expect.extend({
yourMatcher(x, y, z) {
return {
pass: true,
message: '',
message: () => '',
};
},
});
Expand Down

0 comments on commit 0b3a645

Please sign in to comment.