summaryrefslogtreecommitdiff
path: root/tests/specs/test/hide_stacktraces/main.js
diff options
context:
space:
mode:
authorHajime-san <41257923+Hajime-san@users.noreply.github.com>2024-08-20 10:27:36 +0900
committerGitHub <noreply@github.com>2024-08-20 01:27:36 +0000
commit19bcb40059f6ba730b6d05d8edf005c6b40f6ff8 (patch)
treee7c60d8957a8609199a3dad24455518cc36fac32 /tests/specs/test/hide_stacktraces/main.js
parent4f49f703c10afcde7155baac2b494fa6670c0115 (diff)
feat(cli/tools): add a subcommand `--hide-stacktraces` for test (#24095)
Diffstat (limited to 'tests/specs/test/hide_stacktraces/main.js')
-rw-r--r--tests/specs/test/hide_stacktraces/main.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/specs/test/hide_stacktraces/main.js b/tests/specs/test/hide_stacktraces/main.js
new file mode 100644
index 000000000..5e9d186fb
--- /dev/null
+++ b/tests/specs/test/hide_stacktraces/main.js
@@ -0,0 +1,8 @@
+Deno.test("assert a b", () => {
+ class AssertionError extends Error {
+ name = "AssertionError";
+ }
+ throw new AssertionError(
+ "Values are not equal.\n\n\n [Diff] Actual / Expected\n\n\n- foo\n+ bar\n\n",
+ );
+});