diff --git a/lib/browser.js b/lib/browser.js index 20fd93d0b..0a0360f7a 100644 --- a/lib/browser.js +++ b/lib/browser.js @@ -152,9 +152,8 @@ class Browser { } onResult (result) { - if (result.length) { + if (Array.isArray(result)) { result.forEach(this.onResult, this) - return } else if (this.isNotConnected()) { this.lastResult.add(result) this.emitter.emit('spec_complete', this, result)