feat: add tests for node/heart.ts (#5122)
* refactor(heart): extract logic into heartbeatTimer fn To make it easier to test, I extract heartbeatTimer into it's own function. * feat(testing): add tests for heart.ts * fixup * fixup!: remove unneeded heart call * Update src/node/heart.ts Co-authored-by: Asher <ash@coder.com> * fixup!: use mockResolvedValue everywhere * fixup!: add stat test for timestamp check Co-authored-by: Asher <ash@coder.com>
J
Joe Previte committed
18ff99693bfb4d77ccc94c1a21ba40aa50ac2f60
Parent: ed7bd2e
Committed by GitHub <noreply@github.com>
on 4/26/2022, 4:35:40 PM