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
Update hooks_error.test.js
  • Loading branch information
SimenB authored Aug 30, 2018
commit 3ef5e926385ff6b1c104c712c16825fc06d3e21a
4 changes: 2 additions & 2 deletions packages/jest-circus/src/__tests__/hooks_error.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
const circus = require('../index.js');

describe('hooks error throwing', () => {
test.each([['beforeEach'], ['beforeAll'], ['afterEach'], ['afterAll']])(
test.each(['beforeEach', 'beforeAll', 'afterEach', 'afterAll'])(
'%s throws an error when the first argument is not a function',
fn => {
expect(() => {
circus[fn]('param');
}).toThrowError(
`Invalid first argument, param. It must be a callback function.`,
'Invalid first argument, param. It must be a callback function.',
);
},
);
Expand Down