-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: achieve 100% code coverage (#196)
* test: removing duplicates * test: make sure `encodings` and `requestEncodings` are sorted * test: `deflate`/`gzip` compressed Buffers/Streams decompression * test: `deflate`/`gzip` compressed payloads decompression on 'x-no-compression' header * test: add `content-encoding` for a Stream when `inflateIfDeflated` is true and `encoding` is undefined * test: remove `content-length` for a Stream when `inflateIfDeflated` is true on `x-no-compression` header * test: handle case where serialize doesn't return a string or Buffer * test: make sure `fastify-compress` hooks are correctly added * test: decompress `zip` compressed payloads on `x-no-compression` header * fix (test): linting * fix: remove superfluous code * test: make sure `Content-Encoding` header is actually added * test: no compression when reply `Content-Type` header is not set * fix: remove the check preventing multiple onSend triggers as it was fixed in fastify upstream * fix: restore code * test: `compressStream` and `uncompressStream` zlib fallbacks * fix (test): skip coverage on unreachable paths * chore (test): enable 100% code coverage check * chore: upgrade package dependencies * ci: add Node.js 17
- Loading branch information
Showing
5 changed files
with
810 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ts: false | ||
jsx: false | ||
flow: false | ||
coverage: true | ||
check-coverage: true | ||
100: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.