@@ -14,7 +14,7 @@ describe("Headings", () => {
1414 it ( "adds IDs and exports headings even when a custom heading is included" , async ( ) => {
1515 const result = ( await markdocPreprocess ( {
1616 headingIds : true ,
17- nodes : { heading : basicHeadingNode . heading } ,
17+ nodes : { heading : basicHeadingNode } ,
1818 } as Options ) . markup ! ( {
1919 content : markdocWithHeadings ,
2020 filename : "test.md" ,
@@ -26,7 +26,7 @@ describe("Headings", () => {
2626 it ( "adds IDs and exports headings even when the custom heading is a custom component" , async ( ) => {
2727 const result = ( await markdocPreprocess ( {
2828 headingIds : true ,
29- nodes : { heading : customComponentNode . heading } ,
29+ nodes : { heading : customComponentNode } ,
3030 } as Options ) . markup ! ( {
3131 content : markdocWithHeadings ,
3232 filename : "test.md" ,
@@ -49,7 +49,7 @@ describe("Headings", () => {
4949 it ( "adds IDs when passed a custom slugifying function even for custom headings" , async ( ) => {
5050 const result = ( await markdocPreprocess ( {
5151 headingIds : customSlugger ,
52- nodes : { heading : basicHeadingNode . heading } ,
52+ nodes : { heading : basicHeadingNode } ,
5353 } as Options ) . markup ! ( {
5454 content : markdocWithHeadings ,
5555 filename : "test.md" ,
0 commit comments