Content-Length: 344950 | pFad | https://github.com/prettier/prettier/commit/25e214543e0bd5ea6dfb3465594432bbaabdee94

10 Add test for #11526 (#17551) · prettier/prettier@25e2145 · GitHub
Skip to content

Commit 25e2145

Browse files
authored
Add test for #11526 (#17551)
1 parent 0937061 commit 25e2145

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

tests/format/flow/comments/__snapshots__/format.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`arrow.js format 1`] = `
44
====================================options=====================================
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type Foo = {
2+
bar: // test
3+
| {loooooooooooooooooongPropName1: string}
4+
| {loooooooooooooooooongPropName2: string},
5+
};
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2+
3+
exports[`11526.js format 1`] = `
4+
====================================options=====================================
5+
parsers: ["flow"]
6+
printWidth: 80
7+
| printWidth
8+
=====================================input======================================
9+
type Foo = {
10+
bar: // test
11+
| {loooooooooooooooooongPropName1: string}
12+
| {loooooooooooooooooongPropName2: string},
13+
};
14+
15+
=====================================output=====================================
16+
type Foo = {
17+
bar: // test
18+
| { loooooooooooooooooongPropName1: string }
19+
| { loooooooooooooooooongPropName2: string },
20+
};
21+
22+
================================================================================
23+
`;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
runFormatTest(import.meta, ["flow"]);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/prettier/prettier/commit/25e214543e0bd5ea6dfb3465594432bbaabdee94

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy