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 2828 ci :
2929 strategy :
3030 matrix :
31- os : [ubuntu-latest, macOS-latest]
31+ os : [ubuntu-latest, macOS-latest, windows-latest ]
3232 node : [12.x, 14.x, 16.x]
3333 runs-on : ${{ matrix.os }}
3434 steps :
Original file line number Diff line number Diff line change 11import { promises as fs } from "fs"
22import { Readable } from "stream"
3+ import { EOL } from "os"
34
45import test from "ava"
56
@@ -233,7 +234,8 @@ test("Yields File's content", async t => {
233234
234235 chunks . pop ( ) // Remove trailing empty line
235236
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 )
237239} )
238240
239241test ( "Yields every appended field" , async t => {
You can’t perform that action at this time.
0 commit comments