@@ -34,9 +34,9 @@ describe('validatePageSourceStyling (ADR-0065 guardrail)', () => {
3434 expect ( validatePageSourceStyling ( { pages : [ { name : 'p' , kind : 'full' , regions : [ ] } ] } ) ) . toEqual ( [ ] ) ;
3535 } ) ;
3636
37- it ( 'also covers the deprecated jsx alias ' , ( ) => {
37+ it ( 'does not read the retired jsx kind — the page parse refuses that kind first ' , ( ) => {
3838 const f = validatePageSourceStyling ( page ( 'jsx' , '<flex className="p-4" />' ) ) ;
39- expect ( f . length ) . toBe ( 1 ) ;
39+ expect ( f ) . toEqual ( [ ] ) ;
4040 } ) ;
4141} ) ;
4242
@@ -52,16 +52,14 @@ describe('[#22161] one-line fix — page-source-className-tailwind', () => {
5252 it ( 'each kind reads as one remedy line of at most 200 characters' , ( ) => {
5353 const [ react ] = fire ( 'react' , 'function Page(){ return <div className="grid" />; }' ) ;
5454 const [ html ] = fire ( 'html' , '<flex className="gap-4" />' ) ;
55- const [ jsx ] = fire ( 'jsx' , '<flex className="p-4" />' ) ;
5655 expect ( react ! . hint ) . toBe (
5756 "Replace className with inline style={{}} using hsl(var(--token)) theme colors, e.g. style={{ color: 'hsl(var(--foreground))' }}" ,
5857 ) ;
5958 expect ( html ! . hint ) . toBe (
6059 "Replace className with the components' structured props (<flex direction gap>, <grid columns>) and a JSON " +
6160 'style object, e.g. style={{"color":"hsl(var(--foreground))"}}' ,
6261 ) ;
63- expect ( jsx ! . hint ) . toBe ( html ! . hint ) ;
64- for ( const f of [ react ! , html ! , jsx ! ] ) {
62+ for ( const f of [ react ! , html ! ] ) {
6563 expect ( f . hint ) . not . toContain ( '\n' ) ;
6664 expect ( f . hint . length , f . hint ) . toBeLessThanOrEqual ( 200 ) ;
6765 }
0 commit comments