diff options
Diffstat (limited to 'tests/testdata/npm/cjs_module_export_assignment')
-rw-r--r-- | tests/testdata/npm/cjs_module_export_assignment/main.out | 6 | ||||
-rw-r--r-- | tests/testdata/npm/cjs_module_export_assignment/main.ts | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/testdata/npm/cjs_module_export_assignment/main.out b/tests/testdata/npm/cjs_module_export_assignment/main.out new file mode 100644 index 000000000..dea185e38 --- /dev/null +++ b/tests/testdata/npm/cjs_module_export_assignment/main.out @@ -0,0 +1,6 @@ +{ func: [Function: func] } +[Module: null prototype] { + default: { func: [Function: func] }, + func: [Function: func] +} +5 diff --git a/tests/testdata/npm/cjs_module_export_assignment/main.ts b/tests/testdata/npm/cjs_module_export_assignment/main.ts new file mode 100644 index 000000000..93d3db1c3 --- /dev/null +++ b/tests/testdata/npm/cjs_module_export_assignment/main.ts @@ -0,0 +1,6 @@ +import defaultImport, * as namespaceImport from "npm:@denotest/cjs-module-export-assignment"; +import { func } from "npm:@denotest/cjs-module-export-assignment"; + +console.log(defaultImport); +console.log(namespaceImport); +console.log(func()); |