summaryrefslogtreecommitdiff
path: root/tests/specs/run/patch/add/mod.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/run/patch/add/mod.test.ts')
-rw-r--r--tests/specs/run/patch/add/mod.test.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/specs/run/patch/add/mod.test.ts b/tests/specs/run/patch/add/mod.test.ts
new file mode 100644
index 000000000..3d3804e07
--- /dev/null
+++ b/tests/specs/run/patch/add/mod.test.ts
@@ -0,0 +1,9 @@
+import { add } from "./mod.ts";
+
+// this test should not be run or linted
+Deno.test("add", () => {
+ let unusedVar = 5; // purposefully causing a lint error to ensure it's not linted
+ if (add(1, 2) !== 3) {
+ throw new Error("fail");
+ }
+});