Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Jul 18, 2019
1 parent 33f99c6 commit 7b975a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ but are decorated with extra functionality to access and search their content.
```js
// normal access to STDOUT
observable.stdout.on("data", function() {
console.log(data.toString())
// do something here
})

// get all content from STDOUT as a string
Expand All @@ -102,7 +102,7 @@ creates a new `output` stream with the combined content of STDOUT and STDERR:

```js
observable.output.on("data", function(data) {
console.log(data.toString())
// do something here
})
const text = observable.output.fullText()
await observable.output.waitForText("server is online")
Expand Down

0 comments on commit 7b975a4

Please sign in to comment.