test: move tick.js from test/async-hooks to test/common
Move tick.js from test/async-hooks to test/common
tick.js
provides a helper function that can be used to call a callback after a given number of event loop "ticks". Similar tick functions were used in couple of different tests as well. This commit moves tick.js from test/async-hooks/tick.js
to test/common
, updates corresponding imports, as well removes the dublicates.
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