From e2f9b0e6fd01c4ad8d7fc966a531e48e5aaa334f Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 14 Aug 2018 16:50:53 -0400 Subject: First pass at HTTP imports Implement --reload Integrate hyper errors into DenoError In collaboration with Tommy Savaria --- tests/006_url_imports.ts | 3 +++ tests/006_url_imports.ts.out | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 tests/006_url_imports.ts create mode 100644 tests/006_url_imports.ts.out (limited to 'tests') diff --git a/tests/006_url_imports.ts b/tests/006_url_imports.ts new file mode 100644 index 000000000..53dd8b876 --- /dev/null +++ b/tests/006_url_imports.ts @@ -0,0 +1,3 @@ +import { printHello } from "http://localhost:4545/tests/subdir/print_hello.ts"; +printHello(); +console.log("success"); diff --git a/tests/006_url_imports.ts.out b/tests/006_url_imports.ts.out new file mode 100644 index 000000000..d2a3863c5 --- /dev/null +++ b/tests/006_url_imports.ts.out @@ -0,0 +1,3 @@ +Downloading http://localhost:4545/tests/subdir/print_hello.ts +Hello +success -- cgit v1.2.3