diff options
| author | Steven Guerrero <stephenguerrero43@gmail.com> | 2021-12-30 11:18:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-30 17:18:30 +0100 |
| commit | 39a6c94071ee93642196f1a1952a05b125a55c5c (patch) | |
| tree | 83775cc34a542230affbc9e3ac647fba03473a2d /cli/tests/testdata/compat/test_runner/top_level_assertion_esm.mjs | |
| parent | 1adf8ee54529b4e754d4f0513cc7763b3db54199 (diff) | |
feat(test): Add support for "deno test --compat" (#13235)
Diffstat (limited to 'cli/tests/testdata/compat/test_runner/top_level_assertion_esm.mjs')
| -rw-r--r-- | cli/tests/testdata/compat/test_runner/top_level_assertion_esm.mjs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/testdata/compat/test_runner/top_level_assertion_esm.mjs b/cli/tests/testdata/compat/test_runner/top_level_assertion_esm.mjs new file mode 100644 index 000000000..8c217fd55 --- /dev/null +++ b/cli/tests/testdata/compat/test_runner/top_level_assertion_esm.mjs @@ -0,0 +1,4 @@ +import assert, { strictEqual } from "assert"; + +assert(!import.meta.main, "The module was loaded as a main module"); +strictEqual(20, 20); |
