test: refactor test-http-write-empty-string to use arrow functions
In test/parallel/test-http-write-empty-string.js
, callbacks use
anonymous closure functions. It is safe to replace them with arrow
functions since these callbacks don't contain references to this
,
super
or arguments
. This results in shorter functions.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines