test: improve test-net-server-address.js
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test
Description of change
Refactored test as a below;
- 'var' to 'const'
- function to arrow function