Skip to content

Commit

Permalink
add updated snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-conway committed Feb 2, 2024
1 parent 7f59495 commit a2c9f6b
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions test/js/bun/util/__snapshots__/inspect-error.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,37 +1,35 @@
// Bun Snapshot v1, https://goo.gl/fbAQLP

exports[`error.cause 1`] = `
"1 | // @known-failing-on-windows: 1 failing
2 | import { test, expect } from "bun:test";
3 |
4 | test("error.cause", () => {
5 | const err = new Error("error 1");
6 | const err2 = new Error("error 2", { cause: err });
"1 | import { test, expect } from "bun:test";
2 |
3 | test("error.cause", () => {
4 | const err = new Error("error 1");
5 | const err2 = new Error("error 2", { cause: err });
^
error: error 2
at [dir]/inspect-error.test.js:6:16
at [dir]/inspect-error.test.js:5:16
1 | // @known-failing-on-windows: 1 failing
2 | import { test, expect } from "bun:test";
3 |
4 | test("error.cause", () => {
5 | const err = new Error("error 1");
1 | import { test, expect } from "bun:test";
2 |
3 | test("error.cause", () => {
4 | const err = new Error("error 1");
^
error: error 1
at [dir]/inspect-error.test.js:5:15
at [dir]/inspect-error.test.js:4:15
"
`;
exports[`Error 1`] = `
"10 | .replaceAll("//", "/"),
11 | ).toMatchSnapshot();
12 | });
13 |
14 | test("Error", () => {
15 | const err = new Error("my message");
" 9 | .replaceAll("//", "/"),
10 | ).toMatchSnapshot();
11 | });
12 |
13 | test("Error", () => {
14 | const err = new Error("my message");
^
error: my message
at [dir]/inspect-error.test.js:15:15
at [dir]/inspect-error.test.js:14:15
"
`;
Expand Down

0 comments on commit a2c9f6b

Please sign in to comment.