test: refactor callback functions to arrow functions
Refactor callback functions to modern arrow functions.
Also, added common.mustCall
to online
callbacks.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines