forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexpect-async-matcher.test.js.snap
More file actions
77 lines (61 loc) · 1.87 KB
/
expect-async-matcher.test.js.snap
File metadata and controls
77 lines (61 loc) · 1.87 KB
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
// 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
Error
Error: Expected value to have length:
2
Received:
1
received.length:
1
● fail with expected non promise values and not
Error
Error: Expected value to not have length:
2
Received:
1,2
received.length:
2
● fail with expected promise values
Expected value to have length:
2
Received:
1
received.length:
1
22 |
23 | it('fail with expected promise values', async () => {
> 24 | await (expect(Promise.resolve([1])): any).resolves.toHaveLengthAsync(
| ^
25 | Promise.resolve(2)
26 | );
27 | });
at __tests__/failure.test.js:24:54
at __tests__/failure.test.js:11:191
at __tests__/failure.test.js:11:437
at __tests__/failure.test.js:11:99
● fail with expected promise values and not
Expected value to not have length:
2
Received:
1,2
received.length:
2
28 |
29 | it('fail with expected promise values and not', async () => {
> 30 | await (expect(Promise.resolve([1, 2])).resolves.not: any).toHaveLengthAsync(
| ^
31 | Promise.resolve(2)
32 | );
33 | });
at __tests__/failure.test.js:30:61
at __tests__/failure.test.js:11:191
at __tests__/failure.test.js:11:437
at __tests__/failure.test.js:11:99
"
`;