forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestTodo.test.ts.snap
More file actions
71 lines (53 loc) · 1.49 KB
/
testTodo.test.ts.snap
File metadata and controls
71 lines (53 loc) · 1.49 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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`shows error messages when called with invalid argument 1`] = `
FAIL __tests__/todoNonString.test.js
● Test suite failed to run
Todo must be called with only a description.
6 | */
7 |
> 8 | it.todo(() => {});
| ^
9 |
at Object.todo (__tests__/todoNonString.test.js:8:4)
`;
exports[`shows error messages when called with multiple arguments 1`] = `
FAIL __tests__/todoMultipleArgs.test.js
● Test suite failed to run
Todo must be called with only a description.
6 | */
7 |
> 8 | it.todo('todo later', () => {});
| ^
9 |
at Object.todo (__tests__/todoMultipleArgs.test.js:8:4)
`;
exports[`shows error messages when called with no arguments 1`] = `
FAIL __tests__/todoNoArgs.test.js
● Test suite failed to run
Todo must be called with only a description.
6 | */
7 |
> 8 | it.todo();
| ^
9 |
at Object.todo (__tests__/todoNoArgs.test.js:8:4)
`;
exports[`works with all statuses 1`] = `
FAIL __tests__/statuses.test.js
✓ passes
✕ fails
○ skipped 1 test
✎ todo 1 test
● fails
expect(received).toBe(expected) // Object.is equality
Expected: 101
Received: 10
11 |
12 | it('fails', () => {
> 13 | expect(10).toBe(101);
| ^
14 | });
15 |
16 | it.skip('skips', () => {
at Object.toBe (__tests__/statuses.test.js:13:14)
`;