diff --git a/spec/chromium-spec.js b/spec/chromium-spec.js index 2f8c24c2580..a67c109a5ed 100644 --- a/spec/chromium-spec.js +++ b/spec/chromium-spec.js @@ -107,7 +107,7 @@ describe('chromium feature', function () { if (labelFound) { done() } else { - done('No device labels found: ' + JSON.stringify(labels)) + done(new Error(`No device labels found: ${JSON.stringify(labels)}`)) } }).catch(done) })