test: change callback function to arrow function

PR-URL: https://github.com/nodejs/node/pull/24419
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Jay Arthanareeswaran 2018-11-17 17:20:51 +05:30 committed by Gireesh Punathil
parent b4af0c49ea
commit f63dc27eec

View File

@ -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);
});