File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ describe("CodeView", () => {
2323 render ( < CodeView content = { `# Hello World\n\nThis is a markdown example.` } > </ CodeView > ) ;
2424 const wrapper = createWrapper ( ) ! . findCodeView ( ) ! ;
2525 const content = wrapper . findContent ( ) ;
26- expect ( content . getElement ( ) ) . toHaveTextContent ( "Line 1 # Hello World Line 2 Line 3 This is a markdown example." ) ;
26+ expect ( content . getElement ( ) ) . toHaveTextContent ( "1. # Hello World 2. 3. This is a markdown example." ) ;
2727 } ) ;
2828
2929 test ( "correctly renders copy button slot" , ( ) => {
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export function InternalCodeView({
8989 </ td >
9090 ) }
9191 < td className = { styles [ "code-line" ] } >
92- < span className = { styles [ "screenreader-only" ] } > Line { index + 1 } </ span >
92+ < span className = { styles [ "screenreader-only" ] } > { index + 1 } . </ span >
9393 < Box variant = "code" fontSize = "body-m" >
9494 < span
9595 className = { clsx (
You can’t perform that action at this time.
0 commit comments