summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/compat/test_runner/top_level_fail_cjs.js
diff options
context:
space:
mode:
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);