Skip to content

Commit 6d07439

Browse files
committed
fix: cure 🩹 code coverage
1 parent 3ac5c9a commit 6d07439

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎lib/compression.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,12 @@ exports = module.exports = internals.Compression = class {
140140

141141
enableZstdCompression(compressionOptions) {
142142

143+
/* $lab:coverage:off$ */
143144
Hoek.assert(!!Zlib.constants.ZSTD_CLEVEL_DEFAULT, 'Zstd is not supported by the engine');
144145
this.decoders.zstd = (options) => Zlib.createZstdDecompress({ ...options, ...compressionOptions });
145146
this.encoders.zstd = (options) => Zlib.createZstdCompress({ ...options, ...compressionOptions });
146147
this.setPriority(['zstd']);
148+
/* $lab:coverage:on$ */
147149
}
148150

149151
setPriority(priority) {

‎lib/core.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,11 @@ exports = module.exports = internals.Core = class {
131131
this.compression.enableBrotliCompression(this.settings.compression.enableBrotli);
132132
}
133133

134+
/* $lab:coverage:off$ */
134135
if (this.settings.compression.enableZstd) {
135136
this.compression.enableZstdCompression(this.settings.compression.enableZstd);
136137
}
138+
/* $lab:coverage:on$ */
137139

138140
if (this.settings.compression.priority) {
139141
this.compression.setPriority(this.settings.compression.priority);

0 commit comments

Comments
 (0)