We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9047a7b commit d365202Copy full SHA for d365202
src/every.spec.js
@@ -2,6 +2,8 @@ import asyncEvery from './every';
2
3
import {
4
inputArr,
5
+ largerThanOneHundred,
6
+ largerThanOneHundredInRandomTime,
7
} from '../test-utils';
8
9
function largerOrEqualThanZero(x) {
@@ -16,18 +18,6 @@ function largerOrEqualThanZeroInRandomTime(x) {
16
18
);
17
19
}
20
-function largerThanOneHundred(x) {
- return x > 100;
21
-}
22
-
23
-function largerThanOneHundredInRandomTime(x) {
24
- return new Promise(
25
- (resolve) => setTimeout(() => {
26
- resolve(x > 100);
27
- }, Math.random() * 100),
28
- );
29
30
31
describe('asyncEvery()', () => {
32
it.skip('assertions below are valid for synchronous .every()', () => {
33
const mapper = jest.fn().mockImplementation(largerOrEqualThanZero);
0 commit comments