From e4990804fad279f055decf70c794ea5f22372641 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 5 Sep 2018 11:19:39 -0400 Subject: 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. --- tests/006_url_imports.ts | 2 +- tests/006_url_imports.ts.out | 1 + tests/subdir/mod2.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 tests/subdir/mod2.ts (limited to 'tests') 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"; -- cgit v1.2.3