diff --git a/test/parallel/test-zlib-deflate-constructors.js b/test/parallel/test-zlib-deflate-constructors.js index 2f23dc595ec0b0..a235ef45bd0d4f 100644 --- a/test/parallel/test-zlib-deflate-constructors.js +++ b/test/parallel/test-zlib-deflate-constructors.js @@ -83,7 +83,12 @@ assert.doesNotThrow( ); assert.doesNotThrow( - () => { new zlib.Deflate({ strategy: zlib.constants.Z_DEFAULT_STRATEGY}); } + () => { new zlib.Deflate({strategy: zlib.constants.Z_DEFAULT_STRATEGY}); } +); + +// Valid strategies are integer values. Accepts equivalent string value too. +assert.doesNotThrow( + () => { new zlib.Deflate({strategy: '' + zlib.constants.Z_RLE}); } ); // Throws if opts.strategy is invalid