diff options
Diffstat (limited to 'tests/specs/run/error_syntax')
-rw-r--r-- | tests/specs/run/error_syntax/__test__.jsonc | 5 | ||||
-rw-r--r-- | tests/specs/run/error_syntax/error_syntax.js | 3 | ||||
-rw-r--r-- | tests/specs/run/error_syntax/error_syntax.js.out | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/tests/specs/run/error_syntax/__test__.jsonc b/tests/specs/run/error_syntax/__test__.jsonc new file mode 100644 index 000000000..7a60f2c73 --- /dev/null +++ b/tests/specs/run/error_syntax/__test__.jsonc @@ -0,0 +1,5 @@ +{ + "args": "run --reload error_syntax.js", + "output": "error_syntax.js.out", + "exitCode": 1 +} diff --git a/tests/specs/run/error_syntax/error_syntax.js b/tests/specs/run/error_syntax/error_syntax.js new file mode 100644 index 000000000..c0414c356 --- /dev/null +++ b/tests/specs/run/error_syntax/error_syntax.js @@ -0,0 +1,3 @@ + +// deno-fmt-ignore-file +(the following is a syntax error ^^ ! ) diff --git a/tests/specs/run/error_syntax/error_syntax.js.out b/tests/specs/run/error_syntax/error_syntax.js.out new file mode 100644 index 000000000..fa4d51686 --- /dev/null +++ b/tests/specs/run/error_syntax/error_syntax.js.out @@ -0,0 +1,4 @@ +error: The module's source code could not be parsed: Expected ',', got 'following' at [WILDCARD]/error_syntax.js:3:6 + + (the following is a syntax error ^^ ! ) + ~~~~~~~~~ |