Skip to content

Commit

Permalink
fix tests for old versions of node
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoshwolfe committed Apr 22, 2017
1 parent 04e77fe commit dbc9333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/range-test.js
Expand Up @@ -57,6 +57,7 @@ var expectedFileDatas = [
];

function runTest(cb) {
util.inherits(StingyRandomAccessReader, yauzl.RandomAccessReader);
function StingyRandomAccessReader(buffer) {
yauzl.RandomAccessReader.call(this);
this.buffer = buffer;
Expand All @@ -76,7 +77,6 @@ function runTest(cb) {
result.end();
return result;
};
util.inherits(StingyRandomAccessReader, yauzl.RandomAccessReader);

var zipfileReader = new StingyRandomAccessReader(zipfileBuffer);
var options = {lazyEntries: true, autoClose: false};
Expand Down

0 comments on commit dbc9333

Please sign in to comment.