diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration/run_tests.rs | 5 | ||||
-rw-r--r-- | cli/tests/testdata/byte_order_mark.out | 1 | ||||
-rw-r--r-- | cli/tests/testdata/byte_order_mark.ts | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index f5ac82e9c..c7e0325ec 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -1788,3 +1788,8 @@ itest!(tls_connecttls { args: "run --quiet --reload --allow-net --allow-read --cert tls/RootCA.pem tls_connecttls.js", output: "tls.out", }); + +itest!(byte_order_mark { + args: "run --no-check byte_order_mark.ts", + output: "byte_order_mark.out", +}); diff --git a/cli/tests/testdata/byte_order_mark.out b/cli/tests/testdata/byte_order_mark.out new file mode 100644 index 000000000..557db03de --- /dev/null +++ b/cli/tests/testdata/byte_order_mark.out @@ -0,0 +1 @@ +Hello World diff --git a/cli/tests/testdata/byte_order_mark.ts b/cli/tests/testdata/byte_order_mark.ts new file mode 100644 index 000000000..40eb23c1d --- /dev/null +++ b/cli/tests/testdata/byte_order_mark.ts @@ -0,0 +1,4 @@ +import "./001_hello.js"; +// Note this file starts with special byte order mark <U+FEFF> +// it's important that this file is a .ts typescript file which is passed to +// deno through `--no-check` mode. |