Skip to content

Commit cf6a451

Browse files
committed
Fix synchronous util used in tests testing return of forEach and forEachStrict
1 parent dc64499 commit cf6a451

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/forEach.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('asyncForEach()', () => {
7676
});
7777

7878
it('returns undefined', async () => {
79-
const [, pushDuplicate] = makePushDuplicate();
79+
const [, pushDuplicate] = makePushDuplicateInRandomTime();
8080
const mapper = jest.fn().mockImplementation(pushDuplicate);
8181

8282
const result = await asyncForEach(inputArr, mapper);

src/forEach_strict.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe('asyncForEachStrict()', () => {
102102
});
103103

104104
it('returns undefined', async () => {
105-
const [, pushDuplicate] = makePushDuplicate();
105+
const [, pushDuplicate] = makePushDuplicateInRandomTime();
106106
const mapper = jest.fn().mockImplementation(pushDuplicate);
107107

108108
const result = await asyncForEachStrict(inputArr, mapper);

0 commit comments

Comments
 (0)