Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
F3n67u committed Mar 1, 2022
1 parent a5e2fa5 commit cffefd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/jest-each/src/__tests__/array.test.ts
Expand Up @@ -399,17 +399,17 @@ describe('jest-each', () => {
{name: 'bar'},
]);
const testFunction = get(eachObject, keyPath);
testFunction('expected string: $#', () => {});
testFunction('expected index: $#', () => {});

const globalMock = get(globalTestMocks, keyPath);
expect(globalMock).toHaveBeenCalledTimes(2);
expect(globalMock).toHaveBeenCalledWith(
'expected string: foo 0',
'expected index: 0',
expectFunction,
undefined,
);
expect(globalMock).toHaveBeenCalledWith(
'expected string: bar 1',
'expected index: 1',
expectFunction,
undefined,
);
Expand Down

0 comments on commit cffefd7

Please sign in to comment.