summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/test/non_error_thrown.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/test/non_error_thrown.ts')
-rw-r--r--cli/tests/testdata/test/non_error_thrown.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/cli/tests/testdata/test/non_error_thrown.ts b/cli/tests/testdata/test/non_error_thrown.ts
new file mode 100644
index 000000000..85dc8d179
--- /dev/null
+++ b/cli/tests/testdata/test/non_error_thrown.ts
@@ -0,0 +1,23 @@
+Deno.test("foo", () => {
+ throw undefined;
+});
+
+Deno.test("bar", () => {
+ throw null;
+});
+
+Deno.test("baz", () => {
+ throw 123;
+});
+
+Deno.test("qux", () => {
+ throw "Hello, world!";
+});
+
+Deno.test("quux", () => {
+ throw [1, 2, 3];
+});
+
+Deno.test("quuz", () => {
+ throw { a: "Hello, world!", b: [1, 2, 3] };
+});