summaryrefslogtreecommitdiff
path: root/tests/specs/npm/lossy_utf8_module
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/npm/lossy_utf8_module')
-rw-r--r--tests/specs/npm/lossy_utf8_module/__test__.jsonc5
-rw-r--r--tests/specs/npm/lossy_utf8_module/main.mjs3
-rw-r--r--tests/specs/npm/lossy_utf8_module/main.out3
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/specs/npm/lossy_utf8_module/__test__.jsonc b/tests/specs/npm/lossy_utf8_module/__test__.jsonc
new file mode 100644
index 000000000..1ee7d2d6c
--- /dev/null
+++ b/tests/specs/npm/lossy_utf8_module/__test__.jsonc
@@ -0,0 +1,5 @@
+{
+ "args": "run main.mjs",
+ "output": "main.out",
+ "exitCode": 0
+}
diff --git a/tests/specs/npm/lossy_utf8_module/main.mjs b/tests/specs/npm/lossy_utf8_module/main.mjs
new file mode 100644
index 000000000..54cfbb16a
--- /dev/null
+++ b/tests/specs/npm/lossy_utf8_module/main.mjs
@@ -0,0 +1,3 @@
+import mod from "npm:@denotest/lossy-utf8-module@1.0.0";
+
+console.log(mod);
diff --git a/tests/specs/npm/lossy_utf8_module/main.out b/tests/specs/npm/lossy_utf8_module/main.out
new file mode 100644
index 000000000..0e96f9ebb
--- /dev/null
+++ b/tests/specs/npm/lossy_utf8_module/main.out
@@ -0,0 +1,3 @@
+Download http://localhost:4260/@denotest/lossy-utf8-module
+Download http://localhost:4260/@denotest/lossy-utf8-module/1.0.0.tgz
+����