forked from jestjs/jest
/
callDoneTwice.test.ts.snap
89 lines (64 loc) · 2.19 KB
/
callDoneTwice.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
86
87
88
89
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`\`done()\` should not be called more than once 1`] = `
FAIL __tests__/index.test.js
● \`done()\` called more than once › should fail
Expected done to be called once, but it was called multiple times.
8 | it('should fail', done => {
9 | done();
> 10 | done();
| ^
11 | });
12 |
13 | it('should fail inside a promise', done => {
at Object.done (__tests__/index.test.js:10:5)
● \`done()\` called more than once › should fail inside a promise
Expected done to be called once, but it was called multiple times.
15 | .then(() => {
16 | done();
> 17 | done();
| ^
18 | })
19 | .catch(err => err);
20 | });
at done (__tests__/index.test.js:17:9)
● multiple \`done()\` inside beforeEach › should fail
Expected done to be called once, but it was called multiple times.
24 | beforeEach(done => {
25 | done();
> 26 | done();
| ^
27 | });
28 |
29 | it('should fail', () => {
at Object.done (__tests__/index.test.js:26:5)
● multiple \`done()\` inside afterEach › should fail
Expected done to be called once, but it was called multiple times.
35 | afterEach(done => {
36 | done();
> 37 | done();
| ^
38 | });
39 |
40 | it('should fail', () => {
at Object.done (__tests__/index.test.js:37:5)
● multiple \`done()\` inside beforeAll › should fail
Expected done to be called once, but it was called multiple times.
46 | beforeAll(done => {
47 | done();
> 48 | done();
| ^
49 | });
50 |
51 | it('should fail', () => {
at done (__tests__/index.test.js:48:5)
● Test suite failed to run
Expected done to be called once, but it was called multiple times.
57 | afterAll(done => {
58 | done();
> 59 | done();
| ^
60 | });
61 |
62 | it('should fail', () => {
at done (__tests__/index.test.js:59:5)
`;