summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-02-02 01:58:53 -0500
committerRyan Dahl <ry@tinyclouds.org>2019-02-02 17:33:21 -0500
commit4b61170e224344a94152ef6f618d6c71834e5cea (patch)
treed0a58d0a5a47c14be529621bea886d05863fb67b /tests
parent98d20cd17894e02710a20425ba5ae8be52cfe932 (diff)
Better error message for bad filename CLI argument.
Diffstat (limited to 'tests')
-rw-r--r--tests/error_009_missing_js_module.js.out2
-rw-r--r--tests/error_010_nonexistent_arg.out1
-rw-r--r--tests/error_010_nonexistent_arg.test4
3 files changed, 6 insertions, 1 deletions
diff --git a/tests/error_009_missing_js_module.js.out b/tests/error_009_missing_js_module.js.out
index ca41435fa..edb08da1c 100644
--- a/tests/error_009_missing_js_module.js.out
+++ b/tests/error_009_missing_js_module.js.out
@@ -1 +1 @@
-Uncaught Cannot resolve module "./bad-module.js" from "[WILDCARD]error_009_missing_js_module.js"
+Cannot resolve module "./bad-module.js" from "[WILDCARD]error_009_missing_js_module.js"
diff --git a/tests/error_010_nonexistent_arg.out b/tests/error_010_nonexistent_arg.out
new file mode 100644
index 000000000..248cbc329
--- /dev/null
+++ b/tests/error_010_nonexistent_arg.out
@@ -0,0 +1 @@
+[WILDCARD]Cannot resolve module "not-a-valid-filename.ts" from "."
diff --git a/tests/error_010_nonexistent_arg.test b/tests/error_010_nonexistent_arg.test
new file mode 100644
index 000000000..9d183107c
--- /dev/null
+++ b/tests/error_010_nonexistent_arg.test
@@ -0,0 +1,4 @@
+args: not-a-valid-filename.ts
+output: tests/error_010_nonexistent_arg.out
+exit_code: 1
+check_stderr: true