File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,20 @@ describe("login", () => {
101
101
102
102
const htmlContent = await resp . text ( )
103
103
expect ( resp . status ) . toBe ( 200 )
104
- expect ( htmlContent ) . toContain ( appName )
104
+ expect ( htmlContent ) . toContain ( `${ appName } </h1>` )
105
+ expect ( htmlContent ) . toContain ( `<title>${ appName } login</title>` )
106
+ } )
107
+
108
+ it ( "should return correct app-name when unset" , async ( ) => {
109
+ process . env . PASSWORD = previousEnvPassword
110
+ const appName = "code-server"
111
+ const codeServer = await integration . setup ( [ ] , "" )
112
+ const resp = await codeServer . fetch ( "/login" , { method : "GET" } )
113
+
114
+ const htmlContent = await resp . text ( )
115
+ expect ( resp . status ) . toBe ( 200 )
116
+ expect ( htmlContent ) . toContain ( `${ appName } </h1>` )
117
+ expect ( htmlContent ) . toContain ( `<title>${ appName } login</title>` )
105
118
} )
106
119
107
120
it ( "should return correct welcome text" , async ( ) => {
You can’t perform that action at this time.
0 commit comments