Skip to content

Commit

Permalink
Add some more node:zlib tests
Browse files Browse the repository at this point in the history
  • Loading branch information
npaun committed Aug 29, 2024
1 parent 1902a59 commit bd512d0
Show file tree
Hide file tree
Showing 2 changed files with 571 additions and 192 deletions.
4 changes: 1 addition & 3 deletions src/node/internal/internal_zlib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ export function unzipSync(
data: ArrayBufferView | string,
options: ZlibOptions = {}
): Buffer {
return Buffer.from(
zlibUtil.zlibSync(data, options, zlibUtil.CONST_DEFLATERAW)
);
return Buffer.from(zlibUtil.zlibSync(data, options, zlibUtil.CONST_UNZIP));
}

function normalizeArgs(
Expand Down
Loading

0 comments on commit bd512d0

Please sign in to comment.