Skip to content

Commit a5b7b20

Browse files
tests: add for case for issue: 753
1 parent a76ffa4 commit a5b7b20

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

tests/specs/issues/issue753.txt

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
~~ lineWidth: 80, indentWidth: 2, memberExpression.linePerExpression: true ~~
2+
== function args ==
3+
const startingFrom = Mylib.map(DateTime.now, now => DateTime.startOf(now, "day"));
4+
5+
const func = () =>
6+
function() {
7+
const startingFrom = Mylib.map(DateTime.now, now => DateTime.startOf(now, "day"));
8+
}
9+
10+
11+
[expect]
12+
const startingFrom = Mylib.map(
13+
DateTime.now,
14+
now => DateTime.startOf(now, "day"),
15+
);
16+
17+
const func = () =>
18+
function() {
19+
const startingFrom = Mylib.map(
20+
DateTime.now,
21+
now => DateTime.startOf(now, "day"),
22+
);
23+
};
24+
25+
== function args same line length ==
26+
const startingFroom = Mylib.map(DateTime.now, now => DateTime.startOf(now, "day"));
27+
28+
const func = () =>
29+
function() {
30+
const startingF = Mylib.map(DateTime.now, now => DateTime.startOf(now, "day"));
31+
}
32+
33+
34+
[expect]
35+
const startingFroom = Mylib.map(
36+
DateTime.now,
37+
now => DateTime.startOf(now, "day"),
38+
);
39+
40+
const func = () =>
41+
function() {
42+
const startingF = Mylib.map(
43+
DateTime.now,
44+
now => DateTime.startOf(now, "day"),
45+
);
46+
};

0 commit comments

Comments
 (0)