|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`\`done()\` should not be called more than once 1`] = ` |
| 4 | +FAIL __tests__/index.test.js |
| 5 | + ● \`done()\` called more than once › should fail |
| 6 | +
|
| 7 | + Expected done to be called once, but it was called multiple times. |
| 8 | +
|
| 9 | + 8 | it('should fail', done => { |
| 10 | + 9 | done(); |
| 11 | + > 10 | done(); |
| 12 | + | ^ |
| 13 | + 11 | }); |
| 14 | + 12 | |
| 15 | + 13 | it('should fail inside a promise', done => { |
| 16 | +
|
| 17 | + at Object.done (__tests__/index.test.js:10:5) |
| 18 | +
|
| 19 | + ● \`done()\` called more than once › should fail inside a promise |
| 20 | +
|
| 21 | + Expected done to be called once, but it was called multiple times. |
| 22 | +
|
| 23 | + 15 | .then(() => { |
| 24 | + 16 | done(); |
| 25 | + > 17 | done(); |
| 26 | + | ^ |
| 27 | + 18 | }) |
| 28 | + 19 | .catch(err => err); |
| 29 | + 20 | }); |
| 30 | +
|
| 31 | + at done (__tests__/index.test.js:17:9) |
| 32 | +
|
| 33 | + ● multiple \`done()\` inside beforeEach › should fail |
| 34 | +
|
| 35 | + Expected done to be called once, but it was called multiple times. |
| 36 | +
|
| 37 | + 24 | beforeEach(done => { |
| 38 | + 25 | done(); |
| 39 | + > 26 | done(); |
| 40 | + | ^ |
| 41 | + 27 | }); |
| 42 | + 28 | |
| 43 | + 29 | it('should fail', () => { |
| 44 | +
|
| 45 | + at Object.done (__tests__/index.test.js:26:5) |
| 46 | +
|
| 47 | + ● multiple \`done()\` inside afterEach › should fail |
| 48 | +
|
| 49 | + Expected done to be called once, but it was called multiple times. |
| 50 | +
|
| 51 | + 35 | afterEach(done => { |
| 52 | + 36 | done(); |
| 53 | + > 37 | done(); |
| 54 | + | ^ |
| 55 | + 38 | }); |
| 56 | + 39 | |
| 57 | + 40 | it('should fail', () => { |
| 58 | +
|
| 59 | + at Object.done (__tests__/index.test.js:37:5) |
| 60 | +
|
| 61 | + ● multiple \`done()\` inside beforeAll › should fail |
| 62 | +
|
| 63 | + Expected done to be called once, but it was called multiple times. |
| 64 | +
|
| 65 | + 46 | beforeAll(done => { |
| 66 | + 47 | done(); |
| 67 | + > 48 | done(); |
| 68 | + | ^ |
| 69 | + 49 | }); |
| 70 | + 50 | |
| 71 | + 51 | it('should fail', () => { |
| 72 | +
|
| 73 | + at done (__tests__/index.test.js:48:5) |
| 74 | +
|
| 75 | +
|
| 76 | + ● Test suite failed to run |
| 77 | +
|
| 78 | + Expected done to be called once, but it was called multiple times. |
| 79 | +
|
| 80 | + 57 | afterAll(done => { |
| 81 | + 58 | done(); |
| 82 | + > 59 | done(); |
| 83 | + | ^ |
| 84 | + 60 | }); |
| 85 | + 61 | |
| 86 | + 62 | it('should fail', () => { |
| 87 | +
|
| 88 | + at done (__tests__/index.test.js:59:5) |
| 89 | +`; |
0 commit comments