We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4a8c9d commit 02f4e00Copy full SHA for 02f4e00
test/unit/node/routes/login.test.ts
@@ -72,5 +72,20 @@ describe("login", () => {
72
73
expect(htmlContent).toContain("Missing password")
74
})
75
+
76
+ it("should return HTML with 'Incorrect password' message", async () => {
77
+ const params = new URLSearchParams()
78
+ params.append("password", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
79
+ const resp = await codeServer().fetch("/login", {
80
+ method: "POST",
81
+ body: params,
82
+ })
83
84
+ expect(resp.status).toBe(200)
85
86
+ const htmlContent = await resp.text()
87
88
+ expect(htmlContent).toContain("Incorrect password")
89
90
91
0 commit comments