mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-04-04 10:50:59 +01:00
Fix test compatibility with old nodes
This commit is contained in:
parent
4a07e05823
commit
a70b86c8c7
1 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue