1
0
mirror of https://github.com/coder/code-server.git synced 2024-12-04 23:03:06 +08:00
code-server/test/unit/node
Joe Previte 88e971c609
refactor(heart): bind class methods and make beat async (#5142)
* feat: set up new test for beat twice

* refactor: make Heart.beat() async

This allows us to properly await heart.beat() in our tests and remove
the HACK I added before.

* refactor: bind heart methods .beat and .alive

This allows the functions to maintain access to the Heart instance (or
`this`) even when they are passed to other functions. We do this because
we pass both `isActive` and `beat` to `heartbeatTimer`.

* feat(heart): add test to ensure no warnings called

* fixup!: revert setTimeout for heartbeatTimer

* fixup!: return promise in beat
2022-05-04 16:05:48 -07:00
..
routes chore: move Code to a submodule (#4990) 2022-03-14 21:37:29 -05:00
test-plugin release: 4.0.1 (#4678) 2022-01-05 13:06:32 -07:00
app.test.ts fix: listening on IPv6 address not possible (#5133) 2022-04-26 19:33:51 +00:00
cli.test.ts chore: upgrade Code to 1.66 (#5135) 2022-05-04 21:58:49 +00:00
constants.test.ts chore: move Code to a submodule (#4990) 2022-03-14 21:37:29 -05:00
heart.test.ts refactor(heart): bind class methods and make beat async (#5142) 2022-05-04 16:05:48 -07:00
http.test.ts feat(http): keep slashes in queryParams in redirects (#4928) 2022-03-01 12:11:56 -07:00
plugin.test.ts feat: add option for disabling file downloads (#5055) 2022-04-13 09:39:05 -07:00
proxy.test.ts chore: replace eslint-import-resolver-alias with eslint-import-resolver-typescript (#4546) 2021-12-07 14:39:01 -07:00
settings.test.ts feat: publish beta and development tags on npm (#4769) 2022-01-21 16:28:56 -07:00
socket.test.ts chore: upgrade Code to 1.66 (#5135) 2022-05-04 21:58:49 +00:00
update.test.ts chore: provide details when update.checked tests fail (#5115) 2022-04-19 15:46:23 -05:00
util.test.ts revert: @node-rs/argon2 -> node-argon2 (#4829) 2022-02-04 15:52:42 -07:00