summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/compat/test_runner/cjs.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/compat/test_runner/cjs.js')
-rw-r--r--cli/tests/testdata/compat/test_runner/cjs.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/testdata/compat/test_runner/cjs.js b/cli/tests/testdata/compat/test_runner/cjs.js
new file mode 100644
index 000000000..96a1b5112
--- /dev/null
+++ b/cli/tests/testdata/compat/test_runner/cjs.js
@@ -0,0 +1,9 @@
+const { strictEqual } = require("assert");
+
+Deno.test("Correct assertion", () => {
+ strictEqual(20, 20);
+});
+
+Deno.test("Failed assertion", () => {
+ strictEqual(10, 20);
+});