test: code improvements of internet/test-dns
Generally changed usual 'for' loops to 'for of' loops for reducing amount of lines that provides better readability.
Removed unused parameters passed to functions.
Removed unnecessary 'assert.ok' after which there is an assert that the variable is an 'object' and object asserted with 'assert.ok' always passes the check.
-
make -j4 test
(UNIX) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines