@@ -504,17 +504,18 @@ test("feature manifest defaults reach descriptor context through the feature loa
504504 const [ descriptor ] = loadLinuxFeaturePatchDescriptors ( { featuresRoot } ) ;
505505 const patched = descriptor . apply ( projectBundleFixture ( ) , { } ) ;
506506
507- assert . match ( patched , / f o n t - w e i g h t : 7 0 0 ! i m p o r t a n t ; p a d d i n g - t o p : 0 .2 5 r e m ; / ) ;
507+ assert . match ( patched , / f o n t - w e i g h t : 7 0 0 ! i m p o r t a n t ; / ) ;
508+ assert . doesNotMatch ( patched , / p a d d i n g - t o p / ) ;
508509 } finally {
509510 fs . rmSync ( tempDir , { recursive : true , force : true } ) ;
510511 }
511512} ) ;
512513
513- test ( "default project name style is bold with top padding and no forced color " , ( ) => {
514+ test ( "default project name style is bold without changing fixed row geometry " , ( ) => {
514515 const featureJson = JSON . parse ( fs . readFileSync ( path . join ( __dirname , "feature.json" ) , "utf8" ) ) ;
515516 assert . equal ( featureJson . tweaks . sidebar . projectName . style , DEFAULT_PROJECT_NAME_STYLE ) ;
516517 assert . match ( DEFAULT_PROJECT_NAME_STYLE , / f o n t - w e i g h t : \s * 7 0 0 \s * ! i m p o r t a n t / ) ;
517- assert . match ( DEFAULT_PROJECT_NAME_STYLE , / p a d d i n g - t o p : \s * 0 \. 2 5 r e m / ) ;
518+ assert . doesNotMatch ( DEFAULT_PROJECT_NAME_STYLE , / (?: p a d d i n g | m a r g i n | h e i g h t ) / i ) ;
518519 assert . doesNotMatch ( DEFAULT_PROJECT_NAME_STYLE , / c o l o r / i) ;
519520 assert . doesNotMatch ( sidebarProjectNameCss ( DEFAULT_PROJECT_NAME_STYLE ) , / # 0 0 0 | b l a c k / i) ;
520521} ) ;
@@ -573,7 +574,8 @@ test("invalid feature settings warn and fall back to defaults", () => {
573574 const patched = descriptors [ 0 ] . apply ( projectBundleFixture ( ) , { } ) ;
574575
575576 assert . match ( warnings . join ( "\n" ) , / W A R N : L i n u x f e a t u r e ' u i - t w e a k s ' s e t t i n g s / ) ;
576- assert . match ( patched , / f o n t - w e i g h t : 7 0 0 ! i m p o r t a n t ; p a d d i n g - t o p : 0 .2 5 r e m ; / ) ;
577+ assert . match ( patched , / f o n t - w e i g h t : 7 0 0 ! i m p o r t a n t ; / ) ;
578+ assert . doesNotMatch ( patched , / p a d d i n g - t o p / ) ;
577579 } finally {
578580 fs . rmSync ( tempDir , { recursive : true , force : true } ) ;
579581 }
@@ -638,7 +640,8 @@ test("invalid and empty styles warn and fall back without throwing", () => {
638640 ) ;
639641
640642 assert . match ( value , new RegExp ( STYLE_ID ) ) ;
641- assert . match ( value , / f o n t - w e i g h t : 7 0 0 ! i m p o r t a n t ; p a d d i n g - t o p : 0 .2 5 r e m ; / ) ;
643+ assert . match ( value , / f o n t - w e i g h t : 7 0 0 ! i m p o r t a n t ; / ) ;
644+ assert . doesNotMatch ( value , / p a d d i n g - t o p / ) ;
642645 assert . equal ( warnings . length , 1 ) ;
643646 assert . match ( warnings [ 0 ] , / ^ W A R N : u i - t w e a k s s i d e b a r p r o j e c t n a m e s t y l e / ) ;
644647 }
@@ -663,7 +666,8 @@ test("unsafe styles warn, stay scoped, and fall back to the default", () => {
663666 ) ;
664667
665668 assert . match ( value , new RegExp ( STYLE_ID ) ) ;
666- assert . match ( value , / f o n t - w e i g h t : 7 0 0 ! i m p o r t a n t ; p a d d i n g - t o p : 0 .2 5 r e m ; / ) ;
669+ assert . match ( value , / f o n t - w e i g h t : 7 0 0 ! i m p o r t a n t ; / ) ;
670+ assert . doesNotMatch ( value , / p a d d i n g - t o p / ) ;
667671 assert . doesNotMatch ( value , / b o d y \{ d i s p l a y : n o n e \} / ) ;
668672 assert . equal ( value . includes ( unsafeStyle ) , false ) ;
669673 assert . equal ( warnings . length , 1 ) ;
0 commit comments