@@ -219,28 +219,28 @@ describe("Tier 3 - Cross-Feature Combinations", () => {
219219 describe ( "Dynamic OG Fallback Scaling & Long Titles" , ( ) => {
220220 const ogUtils = loadModule ( "src/lib/og-utils.ts" ) ;
221221
222- it ( "3.1 Short title (<= 40 chars) receives 56px font size" , ( ) => {
222+ it ( "3.1 Short title (<= 30 chars) receives 56px font size" , ( ) => {
223223 const title = "Astro vs Next.js" ;
224- assert . equal ( title . length < 40 , true ) ;
224+ assert . ok ( title . length <= 30 ) ;
225225 assert . equal ( ogUtils . titleFontSize ( title ) , 56 ) ;
226226 } ) ;
227227
228- it ( "3.2 Medium title (41-60 chars) receives 48px font size" , ( ) => {
228+ it ( "3.2 Medium-long title (51-70 chars) receives 44px font size" , ( ) => {
229229 const title = "Complete Guide to Cloudflare Workers with Astro SSR" ;
230- assert . ok ( title . length >= 41 && title . length <= 60 ) ;
231- assert . equal ( ogUtils . titleFontSize ( title ) , 48 ) ;
230+ assert . ok ( title . length >= 51 && title . length <= 70 ) ;
231+ assert . equal ( ogUtils . titleFontSize ( title ) , 44 ) ;
232232 } ) ;
233233
234- it ( "3.3 Long title (> 60 chars) receives 42px font size" , ( ) => {
234+ it ( "3.3 Long title (> 70 chars) receives 38px font size" , ( ) => {
235235 const title =
236236 "Why We Are Absolutely Obsessed With Sticker Mule's Holographic Stickers" ;
237- assert . ok ( title . length > 60 ) ;
238- assert . equal ( ogUtils . titleFontSize ( title ) , 42 ) ;
237+ assert . ok ( title . length > 70 ) ;
238+ assert . equal ( ogUtils . titleFontSize ( title ) , 38 ) ;
239239 } ) ;
240240
241- it ( "3.4 Extreme long title (> 120 chars) remains stable at 42px " , ( ) => {
241+ it ( "3.4 Extreme long title (> 120 chars) remains stable at 38px " , ( ) => {
242242 const title = "A" . repeat ( 150 ) ;
243- assert . equal ( ogUtils . titleFontSize ( title ) , 42 ) ;
243+ assert . equal ( ogUtils . titleFontSize ( title ) , 38 ) ;
244244 } ) ;
245245
246246 it ( "3.5 fallbackOgImage safely generates OG image URL with query params and stega cleaning" , ( ) => {
0 commit comments