File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 28
28
ci :
29
29
strategy :
30
30
matrix :
31
- os : [ubuntu-latest, macOS-latest]
31
+ os : [ubuntu-latest, macOS-latest, windows-latest ]
32
32
node : [12.x, 14.x, 16.x]
33
33
runs-on : ${{ matrix.os }}
34
34
steps :
Original file line number Diff line number Diff line change 1
1
import { promises as fs } from "fs"
2
2
import { Readable } from "stream"
3
+ import { EOL } from "os"
3
4
4
5
import test from "ava"
5
6
@@ -233,7 +234,8 @@ test("Yields File's content", async t => {
233
234
234
235
chunks . pop ( ) // Remove trailing empty line
235
236
236
- t . is < string > ( chunks . join ( "\n" ) , expected )
237
+ // It looks like files on Windows have different EOL when you read them, even though they were created on macOS x)
238
+ t . is < string > ( chunks . join ( EOL ) , expected )
237
239
} )
238
240
239
241
test ( "Yields every appended field" , async t => {
You can’t perform that action at this time.
0 commit comments