Skip to content

Commit ab37dd7

Browse files
tests: add for case for issue: 686
1 parent 44fe54c commit ab37dd7

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

tests/specs/issues/issue0686.txt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
~~ lineWidth: 80, indentWidth: 2, memberExpression.linePerExpression: true ~~
2+
== generator ==
3+
const createTestData = () =>
4+
function*() {
5+
const startingFrom = yield* Effect.map(DateTime.now, now => DateTime.startOf(now, "day"));
6+
7+
return HashSet.make(DateTime.toEpochMillis(startingFrom));
8+
};
9+
10+
11+
[expect]
12+
const createTestData = () =>
13+
function*() {
14+
const startingFrom = yield* Effect.map(
15+
DateTime.now,
16+
now => DateTime.startOf(now, "day"),
17+
);
18+
19+
return HashSet.make(DateTime.toEpochMillis(startingFrom));
20+
};
21+
22+
== function ==
23+
const func = () =>
24+
function() {
25+
const startingFrom = Effect.map(DateTime.now, now => DateTime.startOf(now, 'day'))
26+
27+
return myObj
28+
.myMethod({
29+
missionType: otherObj.prop.nested,
30+
});
31+
};
32+
33+
[expect]
34+
const func = () =>
35+
function() {
36+
const startingFrom = Effect.map(
37+
DateTime.now,
38+
now => DateTime.startOf(now, "day"),
39+
);
40+
41+
return myObj
42+
.myMethod({
43+
missionType: otherObj.prop.nested,
44+
});
45+
};

0 commit comments

Comments
 (0)