Skip to content

Commit

Permalink
Simplify tests (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo authored Aug 18, 2020
1 parent 08f66db commit b535ada
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/wait-for-end-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ test("process ends before calling it", async function () {
const observable = start(["node", "-e", "console.log('hello')"])
await delay(50)
const result = await observable.waitForEnd()
assert.deepEqual(result, {
exitCode: 0,
killed: false,
stdOutput: "hello\n",
errOutput: "",
combinedOutput: "hello\n",
})
assert.deepEqual(result.exitCode, 0)
assert.deepEqual(result.killed, false)
assert.deepEqual(result.stdOutput, "hello\n")
assert.deepEqual(result.errOutput, "")
assert.deepEqual(result.combinedOutput, "hello\n")
})

test("process still running when calling it", async function () {
Expand Down

0 comments on commit b535ada

Please sign in to comment.