summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-14 17:27:34 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-14 17:28:31 -0400
commit362aa677b404408a341dc0ddd2e1801c9d0fc200 (patch)
treee74408d405285ca9e948acba82e09452e5b2e2f1 /testdata
parent50105d7855f69190f235ebd50e261863905ef173 (diff)
Support relative import.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/001_hello.js (renamed from testdata/hello_world.js)0
-rw-r--r--testdata/001_hello.js.out (renamed from testdata/hello_world.js.out)0
-rw-r--r--testdata/002_hello.ts (renamed from testdata/hello_world.ts)0
-rw-r--r--testdata/002_hello.ts.out (renamed from testdata/hello_world.ts.out)0
-rw-r--r--testdata/003_relative_import.ts3
-rw-r--r--testdata/003_relative_import.ts.out1
-rw-r--r--testdata/subdir/print_hello.ts3
7 files changed, 7 insertions, 0 deletions
diff --git a/testdata/hello_world.js b/testdata/001_hello.js
index accefceba..accefceba 100644
--- a/testdata/hello_world.js
+++ b/testdata/001_hello.js
diff --git a/testdata/hello_world.js.out b/testdata/001_hello.js.out
index 557db03de..557db03de 100644
--- a/testdata/hello_world.js.out
+++ b/testdata/001_hello.js.out
diff --git a/testdata/hello_world.ts b/testdata/002_hello.ts
index accefceba..accefceba 100644
--- a/testdata/hello_world.ts
+++ b/testdata/002_hello.ts
diff --git a/testdata/hello_world.ts.out b/testdata/002_hello.ts.out
index 557db03de..557db03de 100644
--- a/testdata/hello_world.ts.out
+++ b/testdata/002_hello.ts.out
diff --git a/testdata/003_relative_import.ts b/testdata/003_relative_import.ts
new file mode 100644
index 000000000..01d5d7faa
--- /dev/null
+++ b/testdata/003_relative_import.ts
@@ -0,0 +1,3 @@
+import { printHello } from "./subdir/print_hello.ts";
+
+printHello();
diff --git a/testdata/003_relative_import.ts.out b/testdata/003_relative_import.ts.out
new file mode 100644
index 000000000..e965047ad
--- /dev/null
+++ b/testdata/003_relative_import.ts.out
@@ -0,0 +1 @@
+Hello
diff --git a/testdata/subdir/print_hello.ts b/testdata/subdir/print_hello.ts
new file mode 100644
index 000000000..7ecce5040
--- /dev/null
+++ b/testdata/subdir/print_hello.ts
@@ -0,0 +1,3 @@
+export function printHello(): void {
+ console.log("Hello");
+}