@@ -120,7 +120,9 @@ describe("dashboard UI", () => {
120120 bridgeApiKey : "test-admin-token" ,
121121 } ) ;
122122
123- expect ( html ) . toContain ( "authKey(cfg?.bridgeApiKey)||authKey(localStorage.getItem('bridgeApiKey'))" ) ;
123+ expect ( html ) . toContain (
124+ "authKey(cfg?.bridgeApiKey)||authKey(localStorage.getItem('bridgeApiKey'))" ,
125+ ) ;
124126 expect ( html ) . toContain ( "'authorization':'Bearer '+key" ) ;
125127 } ) ;
126128
@@ -199,12 +201,16 @@ describe("dashboard UI", () => {
199201 } ) ;
200202
201203 expect ( html ) . toContain ( "async function load(){" ) ;
202- expect ( html ) . toContain ( "return {ok:true,dirty:!!cfg.dirty,restartRequired:!!cfg.restart_required}" ) ;
204+ expect ( html ) . toContain (
205+ "return {ok:true,dirty:!!cfg.dirty,restartRequired:!!cfg.restart_required}" ,
206+ ) ;
203207 expect ( html ) . toContain ( "async function waitForRestart()" ) ;
204208 expect ( html ) . toContain ( "elapsed=5;elapsed<=30;elapsed+=5" ) ;
205209 expect ( html ) . toContain ( "setTimeout(r,5000)" ) ;
206210 expect ( html ) . toContain ( "showPopup('Restart requested. Checking bridge state in '" ) ;
207- expect ( html ) . toContain ( "if(state?.ok&&!state.dirty&&!state.restartRequired){hidePopup(); return true;}" ) ;
211+ expect ( html ) . toContain (
212+ "if(state?.ok&&!state.dirty&&!state.restartRequired){hidePopup(); return true;}" ,
213+ ) ;
208214 expect ( html ) . toContain ( "Restart did not finish cleanly within 30s" ) ;
209215 expect ( html ) . not . toContain ( "if($('online').textContent==='online')return" ) ;
210216 } ) ;
0 commit comments