Skip to content

Commit

Permalink
Remove error snapshot assertion due to conditional testing
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmd committed Dec 4, 2019
1 parent cff81ee commit c4e342f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
14 changes: 0 additions & 14 deletions packages/expect/src/__tests__/__snapshots__/matchers.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2558,20 +2558,6 @@ Expected: not <g>[1]</>

`;

exports[`.toEqual() {pass: true} expect([97, 98, 99]).not.toEqual([97, 98, 99]) 1`] = `
<d>expect(</><r>received</><d>).</>not<d>.</>toEqual<d>(</><g>expected</><d>) // deep equality</>

Expected: not <g>[97, 98, 99]</>

`;

exports[`.toEqual() {pass: true} expect([97, 98, 99]).not.toEqual([97, 98, 99]) 2`] = `
<d>expect(</><r>received</><d>).</>not<d>.</>toEqual<d>(</><g>expected</><d>) // deep equality</>

Expected: not <g>[97, 98, 99]</>

`;

exports[`.toEqual() {pass: true} expect([Function anonymous]).not.toEqual(Any<Function>) 1`] = `
<d>expect(</><r>received</><d>).</>not<d>.</>toEqual<d>(</><g>expected</><d>) // deep equality</>

Expand Down
4 changes: 1 addition & 3 deletions packages/expect/src/__tests__/matchers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -744,9 +744,7 @@ describe('.toEqual()', () => {
b,
)})`, () => {
jestExpect(a).toEqual(b);
expect(() =>
jestExpect(a).not.toEqual(b),
).toThrowErrorMatchingSnapshot();
expect(() => jestExpect(a).not.toEqual(b)).toThrowError('toEqual');
});
});
}
Expand Down

0 comments on commit c4e342f

Please sign in to comment.