@@ -77,8 +77,7 @@ describe("public-site contract", () => {
7777 } ) ;
7878
7979 it ( "publishes a real-app large social card and local TestFlight card" , async ( ) => {
80- const socialUrl =
81- "https://pyble.dev/social/pyble-beta-og-1200x630.png" ;
80+ const socialUrl = "https://pyble.dev/social/pyble-beta-og-1200x630.png" ;
8281 expect ( rootMetadata . openGraph ?. images ) . toEqual ( [
8382 {
8483 url : socialUrl ,
@@ -102,22 +101,18 @@ describe("public-site contract", () => {
102101 const publicDirectory = join ( process . cwd ( ) , "public" ) ;
103102 const [ socialPng , qrCardPng , qrCardSvg ] = await Promise . all ( [
104103 readFile ( join ( publicDirectory , "social" , "pyble-beta-og-1200x630.png" ) ) ,
105- readFile (
106- join ( publicDirectory , "social" , "pyble-testflight-qr-1080.png" ) ,
107- ) ,
104+ readFile ( join ( publicDirectory , "social" , "pyble-testflight-qr-1080.png" ) ) ,
108105 readFile (
109106 join ( publicDirectory , "social" , "pyble-testflight-qr-1080.svg" ) ,
110107 "utf8" ,
111108 ) ,
112109 ] ) ;
113- expect ( [
114- socialPng . readUInt32BE ( 16 ) ,
115- socialPng . readUInt32BE ( 20 ) ,
116- ] ) . toEqual ( [ 1200 , 630 ] ) ;
117- expect ( [
118- qrCardPng . readUInt32BE ( 16 ) ,
119- qrCardPng . readUInt32BE ( 20 ) ,
120- ] ) . toEqual ( [ 1080 , 1080 ] ) ;
110+ expect ( [ socialPng . readUInt32BE ( 16 ) , socialPng . readUInt32BE ( 20 ) ] ) . toEqual ( [
111+ 1200 , 630 ,
112+ ] ) ;
113+ expect ( [ qrCardPng . readUInt32BE ( 16 ) , qrCardPng . readUInt32BE ( 20 ) ] ) . toEqual ( [
114+ 1080 , 1080 ,
115+ ] ) ;
121116 expect ( qrCardSvg ) . toContain ( "testflight.apple.com/join/yU4e8s6d" ) ;
122117 expect ( qrCardSvg ) . not . toMatch ( / h t t p s ? : \/ \/ [ ^ < ] * \. (?: p n g | s v g | j p g ) / i) ;
123118 } ) ;
0 commit comments