summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-09-05 11:19:39 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-09-05 22:27:23 -0400
commite4990804fad279f055decf70c794ea5f22372641 (patch)
treef673e5868a0e35df9556aeddedbe5c61334b8a93 /tests
parent10dc71133af211de40e29e7a7ab8c470a4a2c417 (diff)
Improve module resolution.
Windows can't handle ":" in path names, so we use a special directory format .deno/deps/localhost_PORT4545/ to represent hosts with non-default ports. Fixes #645.
Diffstat (limited to 'tests')
-rw-r--r--tests/006_url_imports.ts2
-rw-r--r--tests/006_url_imports.ts.out1
-rw-r--r--tests/subdir/mod2.ts1
3 files changed, 3 insertions, 1 deletions
diff --git a/tests/006_url_imports.ts b/tests/006_url_imports.ts
index 53dd8b876..b2c7db270 100644
--- a/tests/006_url_imports.ts
+++ b/tests/006_url_imports.ts
@@ -1,3 +1,3 @@
-import { printHello } from "http://localhost:4545/tests/subdir/print_hello.ts";
+import { printHello } from "http://localhost:4545/tests/subdir/mod2.ts";
printHello();
console.log("success");
diff --git a/tests/006_url_imports.ts.out b/tests/006_url_imports.ts.out
index d2a3863c5..f481ff137 100644
--- a/tests/006_url_imports.ts.out
+++ b/tests/006_url_imports.ts.out
@@ -1,3 +1,4 @@
+Downloading http://localhost:4545/tests/subdir/mod2.ts
Downloading http://localhost:4545/tests/subdir/print_hello.ts
Hello
success
diff --git a/tests/subdir/mod2.ts b/tests/subdir/mod2.ts
new file mode 100644
index 000000000..ce1adc0e8
--- /dev/null
+++ b/tests/subdir/mod2.ts
@@ -0,0 +1 @@
+export { printHello } from "./print_hello.ts";