Browse Source

fix previously uncaught test failure

AVA previously didn't support checking error message as a string. It does now, hence the new failure.
http2
Sindre Sorhus 9 years ago
parent
commit
6ad66e9ccc
  1. 4
      test/stream.js

4
test/stream.js

@ -41,11 +41,11 @@ test('option.json can not be used', t => {
test('callback can not be used', t => { test('callback can not be used', t => {
t.throws(() => { t.throws(() => {
got.stream(s.url, {json: true}, () => {}); got.stream(s.url, {json: true}, () => {});
}, 'callback can not be used in stream mode'); }, 'callback can not be used with stream mode');
t.throws(() => { t.throws(() => {
got.stream(s.url, () => {}); got.stream(s.url, () => {});
}, 'callback can not be used in stream mode'); }, 'callback can not be used with stream mode');
t.end(); t.end();
}); });

Loading…
Cancel
Save