summaryrefslogtreecommitdiff
path: root/tests/registry/npm/@denotest/specifier-two-slashes
diff options
context:
space:
mode:
Diffstat (limited to 'tests/registry/npm/@denotest/specifier-two-slashes')
-rw-r--r--tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/index.js2
-rw-r--r--tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/other.js3
-rw-r--r--tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/package.json6
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/index.js b/tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/index.js
new file mode 100644
index 000000000..aca5ca1b8
--- /dev/null
+++ b/tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/index.js
@@ -0,0 +1,2 @@
+// node.js will resolve this as ./other.js
+export * from ".//other.js"; \ No newline at end of file
diff --git a/tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/other.js b/tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/other.js
new file mode 100644
index 000000000..7d658310b
--- /dev/null
+++ b/tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/other.js
@@ -0,0 +1,3 @@
+export function add(a, b) {
+ return a + b;
+}
diff --git a/tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/package.json b/tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/package.json
new file mode 100644
index 000000000..55e46b2fd
--- /dev/null
+++ b/tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/package.json
@@ -0,0 +1,6 @@
+{
+ "name": "@denotest/specifier-two-slashes",
+ "version": "1.0.0",
+ "type": "module",
+ "main": "index.js"
+} \ No newline at end of file