Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion __tests__/spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ test("raw echo foo", async () => {
})

test("lines", async () => {
const spawner = new Spawner("echo", ["-n", "foo\nbar"])
// This needs to sit on two lines to support both
// windows and ubuntu tests
const spawner = new Spawner("echo", [
`foo
bar`,
])

spawner.onLine = sinon.fake()
await spawner.spawn()
chai.expect(spawner.onLine).to.be.calledTwice
Expand Down