Skip to content

Commit

Permalink
update other snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 20, 2018
1 parent 21fd945 commit 0f88d71
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`works with custom matchers 1`] = `
46 | };
47 |
48 | // This expecation fails due to an error we throw (intentionally)
at __tests__/custom_matcher.test.js:45:13
at __tests__/custom_matcher.test.js:43:23
at __tests__/custom_matcher.test.js:42:23
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exports[`prints out info about open handlers 1`] = `
> 7 | app.listen({host: 'localhost', port: 0});
| ^
8 |
at Object.<anonymous> (server.js:7:5)
at Object.<anonymous> (__tests__/test.js:3:1)"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`shows error message when not enough arguments are supplied to tests 1`]
]
Missing 1 arguments
at packages/jest-jasmine2/build/each.js:84:17
"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = `
● fail with expected non promise values
Error
Error: Expected value to have length:
2
Received:
Expand All @@ -20,6 +21,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = `
● fail with expected non promise values and not
Error
Error: Expected value to not have length:
2
Received:
Expand All @@ -43,7 +45,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = `
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
Expand All @@ -65,7 +67,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = `
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`.toThrow() error class threw, but class did not match 1`] = `
Expected the function to throw an error of type:
<green>\\"Err2\\"</>
Instead, it threw:
<red> Error </>
<red> Error</>
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
`;
Expand All @@ -24,7 +24,7 @@ exports[`.toThrow() error class threw, but should not have 1`] = `
Expected the function not to throw an error of type:
<green>\\"Err\\"</>
Instead, it threw:
<red> Error </>
<red> Error</>
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
`;
Expand Down Expand Up @@ -56,7 +56,7 @@ exports[`.toThrow() promise/async throws if Error-like object is returned threw,
Expected the function to throw an error of type:
"Err2"
Instead, it threw:
[31m Error [39m
[31m Error[39m
 at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)]
`;
Expand All @@ -65,7 +65,7 @@ exports[`.toThrow() promise/async throws if Error-like object is returned threw,
Expected the function not to throw an error.
Instead, it threw:
[31m Error [39m
[31m Error[39m
 at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)]
`;
Expand All @@ -83,7 +83,7 @@ exports[`.toThrow() regexp threw, but message did not match 1`] = `
Expected the function to throw an error matching:
<green>/banana/</>
Instead, it threw:
<red> Error </>
<red> Error</>
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
`;
Expand All @@ -93,7 +93,7 @@ exports[`.toThrow() regexp threw, but should not have 1`] = `
Expected the function not to throw an error matching:
<green>/apple/</>
Instead, it threw:
<red> Error </>
<red> Error</>
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
`;
Expand All @@ -111,7 +111,7 @@ exports[`.toThrow() strings threw, but message did not match 1`] = `
Expected the function to throw an error matching:
<green>\\"banana\\"</>
Instead, it threw:
<red> Error </>
<red> Error</>
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
`;
Expand All @@ -121,7 +121,7 @@ exports[`.toThrow() strings threw, but should not have 1`] = `
Expected the function not to throw an error matching:
<green>\\"apple\\"</>
Instead, it threw:
<red> Error </>
<red> Error</>
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
`;
Expand All @@ -139,7 +139,7 @@ exports[`.toThrowError() error class threw, but class did not match 1`] = `
Expected the function to throw an error of type:
<green>\\"Err2\\"</>
Instead, it threw:
<red> Error </>
<red> Error</>
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
`;
Expand All @@ -149,7 +149,7 @@ exports[`.toThrowError() error class threw, but should not have 1`] = `
Expected the function not to throw an error of type:
<green>\\"Err\\"</>
Instead, it threw:
<red> Error </>
<red> Error</>
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
`;
Expand Down Expand Up @@ -181,7 +181,7 @@ exports[`.toThrowError() promise/async throws if Error-like object is returned t
Expected the function to throw an error of type:
"Err2"
Instead, it threw:
[31m Error [39m
[31m Error[39m
 at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)]
`;
Expand All @@ -190,7 +190,7 @@ exports[`.toThrowError() promise/async throws if Error-like object is returned t
Expected the function not to throw an error.
Instead, it threw:
[31m Error [39m
[31m Error[39m
 at jestExpect (packages/expect/src/__tests__/toThrowMatchers-test.js:24:74)]
`;
Expand All @@ -208,7 +208,7 @@ exports[`.toThrowError() regexp threw, but message did not match 1`] = `
Expected the function to throw an error matching:
<green>/banana/</>
Instead, it threw:
<red> Error </>
<red> Error</>
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
`;
Expand All @@ -218,7 +218,7 @@ exports[`.toThrowError() regexp threw, but should not have 1`] = `
Expected the function not to throw an error matching:
<green>/apple/</>
Instead, it threw:
<red> Error </>
<red> Error</>
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
`;
Expand All @@ -236,7 +236,7 @@ exports[`.toThrowError() strings threw, but message did not match 1`] = `
Expected the function to throw an error matching:
<green>\\"banana\\"</>
Instead, it threw:
<red> Error </>
<red> Error</>
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
`;
Expand All @@ -246,6 +246,6 @@ exports[`.toThrowError() strings threw, but should not have 1`] = `
Expected the function not to throw an error matching:
<green>\\"apple\\"</>
Instead, it threw:
<red> Error </>
<red> Error</>
<red> <dim>at jestExpect (</>packages/expect/src/__tests__/toThrowMatchers-test.js<dim>:24:74)</></>"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,16 @@ exports[`formatStackTrace should strip node internals 1`] = `
\\"\\"
type:
\\"string\\"
<dim> </>
<dim> </>
<dim></>
<dim> <dim>at Object.it (<dim>__tests__/test.js<dim>:8:14)<dim></>
<dim> </>
"
`;
exports[`should exclude jasmine from stack trace for Unix paths. 1`] = `
"<bold><red> <bold>● <bold>Unix test</></>
at stack (../jest-jasmine2/build/jasmine-2.4.1.js:1580:17)
<dim> </>
<dim></>
<dim> <dim>at Object.addResult (<dim>../jest-jasmine2/build/jasmine-2.4.1.js<dim>:1550:14)<dim></>
<dim> <dim>at Object.it (<dim>build/__tests__/messages-test.js<dim>:45:41)<dim></>
"
Expand All @@ -44,10 +42,8 @@ exports[`should not exclude vendor from stack trace 1`] = `
\\"\\"
type:
\\"string\\"
<dim> </>
<dim> </>
<dim></>
<dim> <dim>at Object.it (<dim>__tests__/vendor/cool_test.js<dim>:6:666)<dim></>
<dim> <dim>at Object.asyncFn (<dim>__tests__/vendor/sulu/node_modules/sulu-content-bundle/best_component.js<dim>:1:5)<dim></>
<dim> </>
"
`;

0 comments on commit 0f88d71

Please sign in to comment.