Skip to content

Commit 25863c3

Browse files
committed
Try re-add Windows to CI.
1 parent bb13438 commit 25863c3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
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:

lib/Encoder.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {promises as fs} from "fs"
22
import {Readable} from "stream"
3+
import {EOL} from "os"
34

45
import 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

239241
test("Yields every appended field", async t => {

0 commit comments

Comments
 (0)