diff options
author | Rich Trott <rtrott@gmail.com> | 2020-09-13 19:54:56 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-09-15 20:51:36 +0300 |
commit | ae257ca0008cd6d01d477d927fa9962d8f406c5f (patch) | |
tree | 1d47f4c130ada00084630ec3dcb364629d7f69b9 /doc | |
parent | 26e660f9627f776678106d0afa7da428c44c45cf (diff) |
test: improve pummel/test-timers.js
* use Date.now() instead of new Date() because only the timestamp is
ever used, so we don't need the full Date object
* use separate start times recorded for the two different test cases
* improve assertion messages
PR-URL: https://github.com/nodejs/node/pull/35175
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions