88describe ( "createMobileCompanionInstallStartUrl" , ( ) => {
99 it ( "keeps the room in the installed launch URL" , ( ) => {
1010 const query = new URLSearchParams ( {
11- client : "mobile-pwa-v11 " ,
11+ client : "mobile-pwa-v12 " ,
1212 mode : "library" ,
1313 roomId : "room-1" ,
1414 gameId : "42" ,
@@ -21,7 +21,7 @@ describe("createMobileCompanionInstallStartUrl", () => {
2121 query ,
2222 ) ,
2323 ) . toBe (
24- "https://example.test/Launcherg-Mod/#/companion?client=mobile-pwa-v11 &mode=library&roomId=room-1&gameId=42&authToken=short-lived-token" ,
24+ "https://example.test/Launcherg-Mod/#/companion?client=mobile-pwa-v12 &mode=library&roomId=room-1&gameId=42&authToken=short-lived-token" ,
2525 ) ;
2626 } ) ;
2727
@@ -84,15 +84,15 @@ describe("configureMobileCompanionInstallManifest", () => {
8484 const link = document . querySelector < HTMLLinkElement > ( 'link[rel="manifest"]' ) ;
8585
8686 expect ( startUrl ) . toBe (
87- "https://example.test/Launcherg-Mod/#/companion?client=mobile-pwa-v11 &mode=controller&roomId=room-1&authToken=short-lived-token" ,
87+ "https://example.test/Launcherg-Mod/#/companion?client=mobile-pwa-v12 &mode=controller&roomId=room-1&authToken=short-lived-token" ,
8888 ) ;
8989 expect ( link ?. href ) . toContain ( "data:application/manifest+json" ) ;
9090 expect ( link ?. dataset . launchergDynamicCompanionManifest ) . toBe ( "true" ) ;
9191 const manifest = JSON . parse (
9292 decodeURIComponent ( link ?. href . split ( "," ) [ 1 ] ?? "" ) ,
9393 ) ;
9494 expect ( manifest . start_url ) . toBe (
95- "https://example.test/Launcherg-Mod/#/companion?client=mobile-pwa-v11 &mode=controller&roomId=room-1&authToken=short-lived-token" ,
95+ "https://example.test/Launcherg-Mod/#/companion?client=mobile-pwa-v12 &mode=controller&roomId=room-1&authToken=short-lived-token" ,
9696 ) ;
9797 } ) ;
9898} ) ;
0 commit comments