Skip to content

Commit

Permalink
Fix tests in node 12+, close #179
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Jan 29, 2020
1 parent 4210cf2 commit 2fa56ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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).


## [1.0.11] - 2020-01-29
### Fixed
- Fix tests in node.js v12+, #179.


## [1.0.10] - 2019-02-28
### Fixed
- Fix minified version, #161.
Expand Down Expand Up @@ -134,6 +139,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- 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.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
Expand Down
4 changes: 2 additions & 2 deletions test/helpers.js
Expand Up @@ -66,7 +66,7 @@ function testSingle(zlib_method, pako_method, data, options) {
// position (= no additional gzip headers used)
if (options.ignore_os) zlib_result[9] = pako_result[9];

assert.deepEqual(pako_result, zlib_result);
assert.deepEqual(new Uint8Array(pako_result), zlib_result);
}


Expand Down Expand Up @@ -104,7 +104,7 @@ function testInflate(samples, inflateOptions, deflateOptions) {
inflated = pako.inflate(deflated, inflateOptions);
pako_utils.setTyped(true);

assert.deepEqual(inflated, data);
assert.deepEqual(new Uint8Array(inflated), data);

// with typed arrays
inflated = pako.inflate(deflated, inflateOptions);
Expand Down

0 comments on commit 2fa56ef

Please sign in to comment.