diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-06-09 19:55:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-09 19:55:04 -0400 |
commit | 3dd981e199a66b09af072d550514ed2fe300df63 (patch) | |
tree | ac88540579f78972fac70246e542ce7de96d54a4 /cli/tests/integration/fmt_tests.rs | |
parent | cf866c5ad386be721ddf432ea2d13c61347f87e5 (diff) |
feat(fmt): support formatting cjs, cts, mjs, and mts files (#14837)
Diffstat (limited to 'cli/tests/integration/fmt_tests.rs')
-rw-r--r-- | cli/tests/integration/fmt_tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/integration/fmt_tests.rs b/cli/tests/integration/fmt_tests.rs index f38160a15..18ad2ab29 100644 --- a/cli/tests/integration/fmt_tests.rs +++ b/cli/tests/integration/fmt_tests.rs @@ -185,8 +185,8 @@ itest!(fmt_stdin { itest!(fmt_stdin_markdown { args: "fmt --ext=md -", - input: Some("# Hello Markdown\n```ts\nconsole.log( \"text\")\n```\n"), - output_str: Some("# Hello Markdown\n\n```ts\nconsole.log(\"text\");\n```\n"), + input: Some("# Hello Markdown\n```ts\nconsole.log( \"text\")\n```\n\n```cts\nconsole.log( 5 )\n```"), + output_str: Some("# Hello Markdown\n\n```ts\nconsole.log(\"text\");\n```\n\n```cts\nconsole.log(5);\n```\n"), }); itest!(fmt_stdin_json { |