diff options
author | Axetroy <axetroy.dev@gmail.com> | 2019-06-19 12:22:01 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-18 21:22:01 -0700 |
commit | c85b1c06a9804ad41fbccf8fe5a5689f28eb049e (patch) | |
tree | e855fc7c02baaa219aa81a2a54a69b19c1fb3716 /prettier/main_test.ts | |
parent | d6e92582cc2267210f71e893b14672783301f87b (diff) |
lint: add max line length rules (denoland/deno_std#507)
Original: https://github.com/denoland/deno_std/commit/b04fda30c8949b6347094b898bfa427c0b9a6162
Diffstat (limited to 'prettier/main_test.ts')
-rw-r--r-- | prettier/main_test.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/prettier/main_test.ts b/prettier/main_test.ts index 13340b04e..a2bc25702 100644 --- a/prettier/main_test.ts +++ b/prettier/main_test.ts @@ -197,9 +197,9 @@ console.log([function foo() {}, function baz() {}, (a) => {}]); await run([...cmd, "--prose-wrap", "always", "--write", file3]); assertEquals( normalizeSourceCode(await getSourceCode(file3)), - `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor -incididunt ut labore et dolore magna aliqua. -` + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, " + + "sed do eiusmod tempor" + + "\nincididunt ut labore et dolore magna aliqua.\n" ); await run([...cmd, "--end-of-line", "crlf", "--write", file2]); @@ -227,7 +227,8 @@ test(async function testPrettierPrintToStdout(): Promise<void> { const { stdout: formattedCode } = await run([...cmd, file1]); // The source file will not change without `--write` flags. assertEquals(await getSourceCode(file1), "console.log(0);" + EOL); - // The output will be formatted code even it is the same as the source file's content. + // The output will be formatted code even it is the same as the source file's + // content. assertEquals(formattedCode, "console.log(0);" + EOL); emptyDir(tempDir); |