Skip to content

Commit

Permalink
chore(expect): test with current version of expect (#8719)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisblossom authored and SimenB committed Jul 18, 2019
1 parent bd76829 commit 33e2d5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/expect/src/__tests__/toThrowMatchers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ class customError extends Error {

describe('regexp', () => {
it('passes', () => {
expect(() => {
jestExpect(() => {
throw new customError('apple');
})[toThrow](/apple/);
expect(() => {
jestExpect(() => {
throw new customError('banana');
}).not[toThrow](/apple/);
expect(() => {}).not[toThrow](/apple/);
jestExpect(() => {}).not[toThrow](/apple/);
});

test('did not throw at all', () => {
Expand Down

0 comments on commit 33e2d5c

Please sign in to comment.