import { deeplyParseHeader } from 'node/utils/parseHeader' ; test ( 'deeplyParseHeader' , ( ) => { const asserts = { '# `H1` <Comp></Comp>' : '# H1' , '# *H1* <Comp/>' : '# H1' , '# `H1` `<Comp></Comp>`' : '# H1 <Comp></Comp>' , '# *H1* `<Comp/>`' : '# H1 <Comp/>' , '# <Comp></Comp> `H1`' : '#  H1' , '# <Comp/> *H1*' : '#  H1' , '# `<Comp></Comp>` `H1`' : '# <Comp></Comp> H1' , '# `<Comp/>` *H1*' : '# <Comp/> H1' , '# `H1` <Comp></Comp> `H2`' : '# H1  H2' , '# `H1` <Comp/> `H2`' : '# H1  H2' , '# `H1` `<Comp></Comp>` `H2`' : '# H1 <Comp></Comp> H2' , '# `H1` `<Comp/>` `H2`' : '# H1 <Comp/> H2' } ; Object . keys ( asserts ) . forEach ( ( input ) => { expect ( deeplyParseHeader ( input ) ) . toBe ( asserts [ input ] ) ; } ) ; } ) ;