Skip to content

Commit c108794

Browse files
committed
map test was testing each not map
1 parent a121a83 commit c108794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/arrays.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('arrays', () => {
3939
it('should call the callback passed to it for each element in array given', () => {
4040
const callBackMockFn = jest.fn(); // this function is going to act as your callback, if it's not called your test will fail.
4141
expect(callBackMockFn.mock.calls.length).toBe(0);
42-
arrayMethods.each([1, 2, 3, 'four'], callBackMockFn);
42+
arrayMethods.map([1, 2, 3, 'four'], callBackMockFn);
4343
expect(callBackMockFn.mock.calls.length).toBe(4);
4444
});
4545
});

0 commit comments

Comments
 (0)