Add simple minifier test, #161

This commit is contained in:
Vitaly Puzrin 2019-03-01 00:00:24 +03:00
parent 731065b150
commit f256ab91b5

View file

@ -24,4 +24,12 @@ describe('ArrayBuffer', function () {
it('Inflate ArrayBuffer', function () {
assert.ok(cmp(sample, pako.inflate(deflated.buffer)));
});
it.skip('Simplified minified version test', function () {
// At some point minifier started to corrupt str2buf function
// https://github.com/nodeca/pako/issues/161#issuecomment-468420555
var minified = require('../dist/pako.min.js');
assert.ok(cmp(minified.deflate('→'), pako.deflate('→')));
});
});