Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Jul 18, 2019
1 parent 8de6761 commit 5866bc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/output-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ describe(".stdout", function() {
'process.stderr.write("hello")\n\
process.stdout.write("world")'
)
const text = await observable.output.waitForText("world")
const text = await observable.stdout.waitForText("world")
assert.equal(text, "world")
})

it("aborts the wait after the optional timeout has been reached", async function() {
const observable = startNodeProcess("setTimeout(function() {}, 3)")
const promise = observable.output.waitForText("hello", 1)
const promise = observable.stdout.waitForText("hello", 1)
await assert.rejects(
promise,
new Error("Expected '' to include string 'hello'")
Expand Down

0 comments on commit 5866bc0

Please sign in to comment.