forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 3
/
expectAsyncMatcher.test.ts.snap
85 lines (68 loc) · 2.44 KB
/
expectAsyncMatcher.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`shows the correct errors in stderr when failing tests 1`] = `
FAIL __tests__/failure.test.js
✕ fail with expected non promise values
✕ fail with expected non promise values and not
✕ fail with expected promise values
✕ fail with expected promise values and not
● fail with expected non promise values
Expected value to have length:
2
Received:
1
received.length:
1
11 |
12 | it('fail with expected non promise values', () =>
> 13 | expect([1]).toHaveLengthAsync(Promise.resolve(2)));
| ^
14 |
15 | it('fail with expected non promise values and not', () =>
16 | expect([1, 2]).not.toHaveLengthAsync(Promise.resolve(2)));
at Object.toHaveLengthAsync (__tests__/failure.test.js:13:15)
● fail with expected non promise values and not
Expected value to not have length:
2
Received:
1,2
received.length:
2
14 |
15 | it('fail with expected non promise values and not', () =>
> 16 | expect([1, 2]).not.toHaveLengthAsync(Promise.resolve(2)));
| ^
17 |
18 | it('fail with expected promise values', () =>
19 | expect(Promise.resolve([1])).resolves.toHaveLengthAsync(Promise.resolve(2)));
at Object.toHaveLengthAsync (__tests__/failure.test.js:16:22)
● fail with expected promise values
Expected value to have length:
2
Received:
1
received.length:
1
17 |
18 | it('fail with expected promise values', () =>
> 19 | expect(Promise.resolve([1])).resolves.toHaveLengthAsync(Promise.resolve(2)));
| ^
20 |
21 | it('fail with expected promise values and not', () =>
22 | expect(Promise.resolve([1, 2])).resolves.not.toHaveLengthAsync(
at Object.toHaveLengthAsync (__tests__/failure.test.js:19:41)
● fail with expected promise values and not
Expected value to not have length:
2
Received:
1,2
received.length:
2
20 |
21 | it('fail with expected promise values and not', () =>
> 22 | expect(Promise.resolve([1, 2])).resolves.not.toHaveLengthAsync(
| ^
23 | Promise.resolve(2),
24 | ));
25 |
at Object.toHaveLengthAsync (__tests__/failure.test.js:22:48)
`;