We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28330e4 commit 4e80591Copy full SHA for 4e80591
test/unit/node/routes/login.test.ts
@@ -114,5 +114,16 @@ describe("login", () => {
114
expect(resp.status).toBe(200)
115
expect(htmlContent).toContain(welcomeText)
116
})
117
+
118
+ it("should return correct welcome text when none is set but app-name is", async () => {
119
+ process.env.PASSWORD = previousEnvPassword
120
+ const appName = "testnäme"
121
+ const codeServer = await integration.setup([`--app-name=${appName}`], "")
122
+ const resp = await codeServer.fetch("/login", { method: "GET" })
123
124
+ const htmlContent = await resp.text()
125
+ expect(resp.status).toBe(200)
126
+ expect(htmlContent).toContain(`Welcome to ${appName}`)
127
+ })
128
129
0 commit comments