()
| 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 () => { |
no test coverage detected