mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-05-04 10:33:48 +01:00
Fix tests in node 12+, close #179
This commit is contained in:
parent
4210cf2667
commit
2fa56efc8f
2 changed files with 8 additions and 2 deletions
|
@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
|
||||||
|
## [1.0.11] - 2020-01-29
|
||||||
|
### Fixed
|
||||||
|
- Fix tests in node.js v12+, #179.
|
||||||
|
|
||||||
|
|
||||||
## [1.0.10] - 2019-02-28
|
## [1.0.10] - 2019-02-28
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fix minified version, #161.
|
- Fix minified version, #161.
|
||||||
|
@ -134,6 +139,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- First release.
|
- First release.
|
||||||
|
|
||||||
|
|
||||||
|
[1.0.10]: https://github.com/nodeca/pako/compare/1.0.10...1.0.11
|
||||||
[1.0.10]: https://github.com/nodeca/pako/compare/1.0.9...1.0.10
|
[1.0.10]: https://github.com/nodeca/pako/compare/1.0.9...1.0.10
|
||||||
[1.0.9]: https://github.com/nodeca/pako/compare/1.0.8...1.0.9
|
[1.0.9]: https://github.com/nodeca/pako/compare/1.0.8...1.0.9
|
||||||
[1.0.8]: https://github.com/nodeca/pako/compare/1.0.7...1.0.8
|
[1.0.8]: https://github.com/nodeca/pako/compare/1.0.7...1.0.8
|
||||||
|
|
|
@ -66,7 +66,7 @@ function testSingle(zlib_method, pako_method, data, options) {
|
||||||
// position (= no additional gzip headers used)
|
// position (= no additional gzip headers used)
|
||||||
if (options.ignore_os) zlib_result[9] = pako_result[9];
|
if (options.ignore_os) zlib_result[9] = pako_result[9];
|
||||||
|
|
||||||
assert.deepEqual(pako_result, zlib_result);
|
assert.deepEqual(new Uint8Array(pako_result), zlib_result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ function testInflate(samples, inflateOptions, deflateOptions) {
|
||||||
inflated = pako.inflate(deflated, inflateOptions);
|
inflated = pako.inflate(deflated, inflateOptions);
|
||||||
pako_utils.setTyped(true);
|
pako_utils.setTyped(true);
|
||||||
|
|
||||||
assert.deepEqual(inflated, data);
|
assert.deepEqual(new Uint8Array(inflated), data);
|
||||||
|
|
||||||
// with typed arrays
|
// with typed arrays
|
||||||
inflated = pako.inflate(deflated, inflateOptions);
|
inflated = pako.inflate(deflated, inflateOptions);
|
||||||
|
|
Loading…
Add table
Reference in a new issue