diff --git a/test/parallel/test-zlib-invalid-input.js b/test/parallel/test-zlib-invalid-input.js index 1b081d919e9068..10c0f3622790d0 100644 --- a/test/parallel/test-zlib-invalid-input.js +++ b/test/parallel/test-zlib-invalid-input.js @@ -43,7 +43,7 @@ const unzips = [ nonStringInputs.forEach(common.mustCall((input) => { // zlib.gunzip should not throw an error when called with bad input. - zlib.gunzip(input, function(err, buffer) { + zlib.gunzip(input, (err, buffer) => { // zlib.gunzip should pass the error to the callback. assert.ok(err); });