1
0
mirror of https://github.com/coder/code-server.git synced 2024-12-04 23:03:06 +08:00
code-server/test/unit
Joe Previte 18ff99693b
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>
2022-04-26 16:35:40 +00:00
..
common Implement last opened functionality (#4633) 2021-12-17 13:06:52 -06:00
node feat: add tests for node/heart.ts (#5122) 2022-04-26 16:35:40 +00:00
helpers.test.ts Implement last opened functionality (#4633) 2021-12-17 13:06:52 -06:00