Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
rickhanlonii committed May 24, 2018
commit 29f5c5df923a44b50bcd91f1928fb57bd4b898b4
12 changes: 7 additions & 5 deletions packages/expect/src/__tests__/extend.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ it('is available globally', () => {
it('exposes matcherUtils in context', () => {
jestExpect.extend({
_shouldNotError(actual, expected) {
const pass = this.equals(this.utils, {
...matcherUtils,
iterableEquality,
subsetEquality,
});
const pass = this.equals(
this.utils,
Object.assign(matcherUtils, {
iterableEquality,
subsetEquality,
}),
);
const message = pass
? () => `expected this.utils to be defined in an extend call`
: () => `expected this.utils not to be defined in an extend call`;
Expand Down