summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-18 20:39:20 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-18 21:25:37 -0400
commit8886e1b55f3495b3b798825274a910e5f231a74b (patch)
tree1b1be7a8819cd24e9a1da9cc1914ff1db34a0b9b /testdata
parent39da69f051c48f15dd4af5e8a4cbe17ff4f349e5 (diff)
Initial support for remote imports
Diffstat (limited to 'testdata')
-rw-r--r--testdata/006_url_imports.ts3
-rw-r--r--testdata/006_url_imports.ts.out2
2 files changed, 5 insertions, 0 deletions
diff --git a/testdata/006_url_imports.ts b/testdata/006_url_imports.ts
new file mode 100644
index 000000000..57af683cf
--- /dev/null
+++ b/testdata/006_url_imports.ts
@@ -0,0 +1,3 @@
+import { printHello } from "http://localhost:4545/testdata/subdir/print_hello.ts";
+printHello();
+console.log("success");
diff --git a/testdata/006_url_imports.ts.out b/testdata/006_url_imports.ts.out
new file mode 100644
index 000000000..989ce33e9
--- /dev/null
+++ b/testdata/006_url_imports.ts.out
@@ -0,0 +1,2 @@
+Hello
+success