MCPcopy Index your code
hub / github.com/coder/code-server / commonTests

Function commonTests

test/unit/node/routes/static.test.ts:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 })
42
43 function commonTests() {
44 it("should return a 404 when a file is not provided", async () => {
45 const resp = await codeServer().fetch(`/_static/`)
46 expect(resp.status).toBe(NOT_FOUND.code)
47
48 const content = await resp.json()
49 expect(content.error).toMatch(NOT_FOUND.message)
50 })
51 }
52
53 describe("disabled authentication", () => {
54 beforeEach(async () => {

Callers 1

static.test.tsFile · 0.85

Calls 2

fetchMethod · 0.80
codeServerFunction · 0.70

Tested by

no test coverage detected