Skip to content

Commit

Permalink
Format 08280ed
Browse files Browse the repository at this point in the history
  • Loading branch information
prettifier[bot] committed Oct 3, 2020
1 parent 08280ed commit e134efe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/searchable-stream.ts
Expand Up @@ -18,13 +18,13 @@ export type SearchableStream = NodeJS.ReadableStream & TextStreamSearcher
export function createSearchableStream(stream: NodeJS.ReadableStream): SearchableStream {
const result = stream as SearchableStream
const search = new TextStreamSearch(stream)
result.waitForText = async function(text: string, timeout?: number) {
result.waitForText = async function (text: string, timeout?: number) {
return search.waitForText(text, timeout)
}
result.waitForRegex = async function(regex: RegExp, timeout?: number) {
result.waitForRegex = async function (regex: RegExp, timeout?: number) {
return search.waitForRegex(regex, timeout)
}
result.fullText = function() {
result.fullText = function () {
return search.fullText()
}
return result
Expand Down

0 comments on commit e134efe

Please sign in to comment.