@@ -28,30 +28,30 @@ describe('FootnoteDefinition', () => {
2828 } ) ;
2929 it ( 'renders <div> with `id` attribute' , ( { props } ) => {
3030 mount ( Unist , { props, target : document . body } ) ;
31- expect ( document . body . querySelector ( 'div#footnote-1' ) ) . toBeInTheDocument ( ) ;
31+ expect ( document . body . querySelector ( 'div#footnote-id- 1' ) ) . toBeInTheDocument ( ) ;
3232 } ) ;
3333 it ( 'renders <p> in <div>' , ( { props } ) => {
3434 mount ( Unist , { props, target : document . body } ) ;
35- expect ( document . body . querySelector ( 'div#footnote-1 > p' ) ) . toBeInTheDocument ( ) ;
35+ expect ( document . body . querySelector ( 'div#footnote-id- 1 > p' ) ) . toBeInTheDocument ( ) ;
3636 } ) ;
3737 it ( 'renders <p> in <div> with `label` content' , ( { props } ) => {
3838 mount ( Unist , { props, target : document . body } ) ;
39- expect ( document . body . querySelector ( 'div#footnote-1 > p' ) ) . toHaveTextContent ( '1' ) ;
39+ expect ( document . body . querySelector ( 'div#footnote-id- 1 > p' ) ) . toHaveTextContent ( '1' ) ;
4040 } ) ;
4141 it ( 'renders <a> in <div>' , ( { props } ) => {
4242 mount ( Unist , { props, target : document . body } ) ;
43- expect ( document . body . querySelector ( 'div#footnote-1 > a' ) ) . toBeInTheDocument ( ) ;
43+ expect ( document . body . querySelector ( 'div#footnote-id- 1 > a' ) ) . toBeInTheDocument ( ) ;
4444 } ) ;
4545 it ( 'renders <a> in <div> with `href` attribute' , ( { props } ) => {
4646 mount ( Unist , { props, target : document . body } ) ;
47- expect ( document . body . querySelector ( 'div#footnote-1 > a' ) ) . toHaveAttribute ( 'href' , '#footnote-ref-1' ) ;
47+ expect ( document . body . querySelector ( 'div#footnote-id- 1 > a' ) ) . toHaveAttribute ( 'href' , '#footnote-ref-id -1' ) ;
4848 } ) ;
4949 it ( 'renders <a> in <div> with `aria-label' , ( { props } ) => {
5050 mount ( Unist , { props, target : document . body } ) ;
51- expect ( document . body . querySelector ( 'div#footnote-1 > a' ) ) . toHaveAttribute ( 'aria-label' , 'Back to content' ) ;
51+ expect ( document . body . querySelector ( 'div#footnote-id- 1 > a' ) ) . toHaveAttribute ( 'aria-label' , 'Back to content' ) ;
5252 } ) ;
5353 it ( 'renders <a> in <div> with content' , ( { props } ) => {
5454 mount ( Unist , { props, target : document . body } ) ;
55- expect ( document . body . querySelector ( 'div#footnote-1 a' ) ) . toHaveTextContent ( '↩' ) ;
55+ expect ( document . body . querySelector ( 'div#footnote-id- 1 a' ) ) . toHaveTextContent ( '↩' ) ;
5656 } ) ;
5757} ) ;
0 commit comments