Skip to content

Commit 500e58e

Browse files
committed
fix tests
1 parent 6fc54b1 commit 500e58e

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

tests/tools_tests/src/docstrings-format/FormatDocstringsTest1.res

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ Third docstring with array and option types.
3939
4040
```rescript
4141
let processUsers=(users:array<user>)=>{
42-
users->Array.map(user=>{...user,active:false})->Array.filter(u=>u.age>21)
42+
users
43+
->Array.map(user=>{...user,active:false})->Array.filter(u=>u.age>21)
4344
}
4445
4546
type status=|Loading|Success(string)|Error(option<string>)

tests/tools_tests/src/docstrings-format/FormatDocstringsTest1.resi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ Third docstring with array and option types.
3939
4040
```rescript
4141
let processUsers=(users:array<user>)=>{
42-
users->Array.map(user=>{...user,active:false})->Array.filter(u=>u.age>21)
42+
users
43+
->Array.map(user=>{...user,active:false})->Array.filter(u=>u.age>21)
4344
}
4445
4546
type status=|Loading|Success(string)|Error(option<string>)

tests/tools_tests/src/docstrings-format/FormatDocstringsTest2.res

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ Testing function composition and piping.
2828
2929
```rescript
3030
let processData=(data:array<int>)=>{
31-
data->Array.filter(x=>x>0)->Array.map(x=>x*2)->Array.reduce(0,(acc,x)=>acc+x)
31+
data
32+
->Array.filter(x=>x>0)->Array.map(x=>x*2)->Array.reduce(0,(acc,x)=>acc+x)
3233
}
3334
3435
let asyncExample=async()=>{

tests/tools_tests/src/expected/FormatDocstringsTest2.res.expected

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ Testing JSX and more complex formatting scenarios.
55
let component = () => {
66
<div className="container">
77
<h1> {"Title"->React.string} </h1>
8-
<button onClick={_ => Console.log("clicked")}>
9-
{"Click me"->React.string}
10-
</button>
8+
<button onClick={_ => Console.log("clicked")}> {"Click me"->React.string} </button>
119
</div>
1210
}
1311
```

0 commit comments

Comments
 (0)