Fix test compatibility with old nodes

This commit is contained in:
Kirill Efimov 2016-07-21 15:13:46 +03:00
parent 4a07e05823
commit a70b86c8c7

View file

@ -212,11 +212,9 @@ describe('Deflate issues', function () {
it('#78', function () {
var data = fs.readFileSync(path.join(__dirname, 'fixtures', 'issue_78.bin'));
var options = { level: 6, memLevel: 1 };
var deflatedPakoData = pako.deflate(data, { memLevel: 1 });
var inflatedPakoData = pako.inflate(deflatedPakoData);
var deflatedPakoData = pako.deflate(data, options);
var deflatedZlibData = zlib.deflateSync(data, options);
assert.equal(deflatedPakoData.length, deflatedZlibData.length);
assert.equal(data.length, inflatedPakoData.length);
});
});