summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/compat/test_runner/top_level_fail_cjs.js
diff options
context:
space:
mode:
authorSteven Guerrero <stephenguerrero43@gmail.com>2021-12-30 11:18:30 -0500
committerGitHub <noreply@github.com>2021-12-30 17:18:30 +0100
commit39a6c94071ee93642196f1a1952a05b125a55c5c (patch)
tree83775cc34a542230affbc9e3ac647fba03473a2d /cli/tests/testdata/compat/test_runner/top_level_fail_cjs.js
parent1adf8ee54529b4e754d4f0513cc7763b3db54199 (diff)
feat(test): Add support for "deno test --compat" (#13235)
Diffstat (limited to 'cli/tests/testdata/compat/test_runner/top_level_fail_cjs.js')
-rw-r--r--cli/tests/testdata/compat/test_runner/top_level_fail_cjs.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/testdata/compat/test_runner/top_level_fail_cjs.js b/cli/tests/testdata/compat/test_runner/top_level_fail_cjs.js
new file mode 100644
index 000000000..20f809794
--- /dev/null
+++ b/cli/tests/testdata/compat/test_runner/top_level_fail_cjs.js
@@ -0,0 +1,4 @@
+const { notStrictEqual, strictEqual } = require("assert");
+
+notStrictEqual(require.main, module, "The module was loaded as a main module");
+strictEqual(10, 20);