summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2019-02-01 22:28:31 -0800
committerRyan Dahl <ry@tinyclouds.org>2019-02-02 01:28:31 -0500
commit3650bae5f6565cb6de2706512df145c86e8525cd (patch)
tree2bc066e39dc60fdb6ce7fd615c7f9d92deb45f54 /tests
parent16ed1f2545b34851ebdb9095251236fb51e39f5d (diff)
Add --info flag to display file info (compiled code/source map) (#1647)
Diffstat (limited to 'tests')
-rw-r--r--tests/021_info_flag_setup.out1
-rw-r--r--tests/021_info_flag_setup.test4
-rw-r--r--tests/022_info_flag.out4
-rw-r--r--tests/022_info_flag.test4
4 files changed, 13 insertions, 0 deletions
diff --git a/tests/021_info_flag_setup.out b/tests/021_info_flag_setup.out
new file mode 100644
index 000000000..e965047ad
--- /dev/null
+++ b/tests/021_info_flag_setup.out
@@ -0,0 +1 @@
+Hello
diff --git a/tests/021_info_flag_setup.test b/tests/021_info_flag_setup.test
new file mode 100644
index 000000000..eaded0840
--- /dev/null
+++ b/tests/021_info_flag_setup.test
@@ -0,0 +1,4 @@
+# This is used to make sure code for remote source is compiled
+# such that 022_info_flag.test would function correctly
+args: --reload http://127.0.0.1:4545/tests/003_relative_import.ts
+output: tests/021_info_flag_setup.out
diff --git a/tests/022_info_flag.out b/tests/022_info_flag.out
new file mode 100644
index 000000000..9421387a6
--- /dev/null
+++ b/tests/022_info_flag.out
@@ -0,0 +1,4 @@
+local: [WILDCARD]deps/http/127.0.0.1_PORT4545/tests/003_relative_import.ts
+type: TypeScript
+compiled: [WILDCARD].js
+map: [WILDCARD].js.map
diff --git a/tests/022_info_flag.test b/tests/022_info_flag.test
new file mode 100644
index 000000000..e2132a85f
--- /dev/null
+++ b/tests/022_info_flag.test
@@ -0,0 +1,4 @@
+# The output assumes 003_relative_import.ts has already been run earlier
+# and its output is cached to $DENO_DIR.
+args: --info http://127.0.0.1:4545/tests/003_relative_import.ts
+output: tests/022_info_flag.out