From 6ad66e9ccc6cca8fb77bd6faf8c77ce0b6c55199 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 7 Nov 2015 20:18:32 +0700 Subject: [PATCH] fix previously uncaught test failure AVA previously didn't support checking error message as a string. It does now, hence the new failure. --- test/stream.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/stream.js b/test/stream.js index e7e7446..d51ad36 100644 --- a/test/stream.js +++ b/test/stream.js @@ -41,11 +41,11 @@ test('option.json can not be used', t => { test('callback can not be used', t => { t.throws(() => { got.stream(s.url, {json: true}, () => {}); - }, 'callback can not be used in stream mode'); + }, 'callback can not be used with stream mode'); t.throws(() => { got.stream(s.url, () => {}); - }, 'callback can not be used in stream mode'); + }, 'callback can not be used with stream mode'); t.end(); });