summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/compare_globals
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2022-08-26 23:39:05 +0900
committerGitHub <noreply@github.com>2022-08-26 23:39:05 +0900
commit9b324b1cf4a8ee4159abb041e72a8885a28e92a3 (patch)
tree37cd36144b77915b17975719fdaa1862ff8e0bcb /cli/tests/testdata/npm/compare_globals
parentf583a7ebf4f7c4ef21061fba802f80fd2d5299e7 (diff)
fix(ext/node): fix global in node env (#15622)
Diffstat (limited to 'cli/tests/testdata/npm/compare_globals')
-rw-r--r--cli/tests/testdata/npm/compare_globals/main.js2
-rw-r--r--cli/tests/testdata/npm/compare_globals/main.out3
2 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/compare_globals/main.js b/cli/tests/testdata/npm/compare_globals/main.js
new file mode 100644
index 000000000..ce43e32b1
--- /dev/null
+++ b/cli/tests/testdata/npm/compare_globals/main.js
@@ -0,0 +1,2 @@
+import * as globals from "npm:@denotest/globals";
+console.log(globals.global === globals.globalThis);
diff --git a/cli/tests/testdata/npm/compare_globals/main.out b/cli/tests/testdata/npm/compare_globals/main.out
new file mode 100644
index 000000000..a1a5c0e8f
--- /dev/null
+++ b/cli/tests/testdata/npm/compare_globals/main.out
@@ -0,0 +1,3 @@
+Download http://localhost:4545/npm/registry/@denotest/globals
+Download http://localhost:4545/npm/registry/@denotest/globals/1.0.0.tgz
+true