Skip to content

Commit a559106

Browse files
committed
fix: migrate range.test.js for tap v21
PR #839 was merged after a long time, so the test written for it was written for a previous version of tap which had the `t.ifError()` method. The current version has `t.error()` instead. Introduced-By: a4c13ae
1 parent a4c13ae commit a559106

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/range.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ test('range starts beyond the end', (t) => {
5858
headers: { range: '500-' },
5959
};
6060
request.get(opts, (err, res, body) => {
61-
t.ifError(err);
61+
t.error(err);
6262
t.equal(res.statusCode, 416, 'range error status code');
6363
t.equal(res.headers['content-range'], 'bytes */11');
6464
t.equal(body, 'Requested range not satisfiable');

0 commit comments

Comments
 (0)