mirror of
https://github.com/cdr/code-server.git
synced 2026-04-01 19:13:33 +02:00
Run formatter
This commit is contained in:
parent
f3ae74b223
commit
2a1bfc86f8
1 changed files with 2 additions and 6 deletions
|
|
@ -34,9 +34,7 @@ describe("error page is rendered for text/html requests", () => {
|
|||
} as unknown as express.Response
|
||||
|
||||
await errorHandler(err, req, res, jest.fn())
|
||||
expect(res.send).toHaveBeenCalledWith(
|
||||
expect.stringContaining("<title>404 - MyCodeServer</title>"),
|
||||
)
|
||||
expect(res.send).toHaveBeenCalledWith(expect.stringContaining("<title>404 - MyCodeServer</title>"))
|
||||
})
|
||||
|
||||
it("should use default 'code-server' when app-name is not set", async () => {
|
||||
|
|
@ -52,9 +50,7 @@ describe("error page is rendered for text/html requests", () => {
|
|||
} as unknown as express.Response
|
||||
|
||||
await errorHandler(err, req, res, jest.fn())
|
||||
expect(res.send).toHaveBeenCalledWith(
|
||||
expect.stringContaining("<title>500 - code-server</title>"),
|
||||
)
|
||||
expect(res.send).toHaveBeenCalledWith(expect.stringContaining("<title>500 - code-server</title>"))
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue