mirror of
https://github.com/coder/code-server.git
synced 2026-05-12 23:37:25 +02:00
Refactor integration tests to use main entry point
This commit is contained in:
@@ -12,7 +12,7 @@ describe("health", () => {
|
||||
})
|
||||
|
||||
it("/healthz", async () => {
|
||||
;[, , codeServer] = await integration.setup(["--auth=none"], "")
|
||||
codeServer = await integration.setup(["--auth=none"], "")
|
||||
const resp = await codeServer.fetch("/healthz")
|
||||
expect(resp.status).toBe(200)
|
||||
const json = await resp.json()
|
||||
@@ -20,7 +20,7 @@ describe("health", () => {
|
||||
})
|
||||
|
||||
it("/healthz (websocket)", async () => {
|
||||
;[, , codeServer] = await integration.setup(["--auth=none"], "")
|
||||
codeServer = await integration.setup(["--auth=none"], "")
|
||||
const ws = codeServer.ws("/healthz")
|
||||
const message = await new Promise((resolve, reject) => {
|
||||
ws.on("error", console.error)
|
||||
|
||||
Reference in New Issue
Block a user