Skip to content

Commit

Permalink
update failures.test snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Oct 26, 2020
1 parent 8b32014 commit 12b5288
Showing 1 changed file with 33 additions and 26 deletions.
59 changes: 33 additions & 26 deletions e2e/__tests__/__snapshots__/failures.test.ts.snap
Expand Up @@ -117,6 +117,7 @@ FAIL __tests__/duringTests.test.js
Boolean thrown during test
undefined thrown during test
Object thrown during test
Object with stack prop thrown during test
Error during test
done(Error)
done(non-error)
Expand Down Expand Up @@ -185,33 +186,39 @@ FAIL __tests__/duringTests.test.js
at Object.test (__tests__/duringTests.test.js:28:1)
● Object with stack prop thrown during test
42
● Error during test
ReferenceError: doesNotExist is not defined
32 | test('Error during test', () => {
33 | // eslint-disable-next-line no-undef
> 34 | doesNotExist.alsoThisNot;
37 | test('Error during test', () => {
38 | // eslint-disable-next-line no-undef
> 39 | doesNotExist.alsoThisNot;
| ^
35 | });
36 |
37 | test('done(Error)', done => {
40 | });
41 |
42 | test('done(Error)', done => {
at Object.doesNotExist (__tests__/duringTests.test.js:34:3)
at Object.doesNotExist (__tests__/duringTests.test.js:39:3)
done(Error)
this is an error
36 |
37 | test('done(Error)', done => {
> 38 | done(new Error('this is an error'));
41 |
42 | test('done(Error)', done => {
> 43 | done(new Error('this is an error'));
| ^
39 | });
40 |
41 | test('done(non-error)', done => {
44 | });
45 |
46 | test('done(non-error)', done => {
at Object.<anonymous> (__tests__/duringTests.test.js:38:8)
at Object.<anonymous> (__tests__/duringTests.test.js:43:8)
● done(non-error)
Expand All @@ -224,15 +231,15 @@ FAIL __tests__/duringTests.test.js
],
}
40 |
41 | test('done(non-error)', done => {
> 42 | done(deepObject);
45 |
46 | test('done(non-error)', done => {
> 47 | done(deepObject);
| ^
43 | });
44 |
45 | test('returned promise rejection', () => Promise.reject(deepObject));
48 | });
49 |
50 | test('returned promise rejection', () => Promise.reject(deepObject));
at Object.done (__tests__/duringTests.test.js:42:3)
at Object.done (__tests__/duringTests.test.js:47:3)
● returned promise rejection
Expand All @@ -245,13 +252,13 @@ FAIL __tests__/duringTests.test.js
],
}
43 | });
44 |
> 45 | test('returned promise rejection', () => Promise.reject(deepObject));
48 | });
49 |
> 50 | test('returned promise rejection', () => Promise.reject(deepObject));
| ^
46 |
51 |
at Object.test (__tests__/duringTests.test.js:45:1)
at Object.test (__tests__/duringTests.test.js:50:1)
`;
exports[`not throwing Error objects 6`] = `
Expand Down

0 comments on commit 12b5288

Please sign in to comment.