@@ -7,8 +7,8 @@ describe('DocsMarkdownRenderer', () => {
77 } ) ;
88
99 it ( 'generates regular headings for h1 and h2' , ( ) => {
10- expect ( renderer . heading ( 'a' , 1 , 'ignored' ) ) . toEqual ( '<h1>a</h1>' ) ;
11- expect ( renderer . heading ( 'b' , 2 , 'ignored' ) ) . toEqual ( '<h2>b</h2> ' ) ;
10+ expect ( renderer . heading ( 'a' , 1 , 'ignored' ) ) . toBe ( '<h1>a</h1>' ) ;
11+ expect ( renderer . heading ( 'b' , 2 , 'ignored' ) ) . toContain ( '<h2 ' ) ;
1212 } ) ;
1313
1414 it ( 'creates header link for h3 and h4 headings' , ( ) => {
@@ -74,23 +74,28 @@ describe('DocsMarkdownRenderer', () => {
7474 const result = renderer . html ( `<!-- example(
7575 {
7676 "example": "exampleName",
77- "file": "example-html.html",
77+ "file": "example-html.html"
7878 }
7979 ) -->` ) ;
8080 expectEqualIgnoreLeadingWhitespace (
8181 result ,
8282 `<div material-docs-example="exampleName"
83- file="example-html.html"></div>` ,
83+ file="example-html.html"
84+ ></div>` ,
8485 ) ;
8586 } ) ;
8687
8788 it ( 'generates html using new API with no file and no region' , ( ) => {
8889 const result = renderer . html ( `<!-- example(
8990 {
90- "example": "exampleName",
91+ "example": "exampleName"
9192 }
9293 ) -->` ) ;
93- expectEqualIgnoreLeadingWhitespace ( result , `<div material-docs-example="exampleName"></div>` ) ;
94+ expectEqualIgnoreLeadingWhitespace (
95+ result ,
96+ `<div material-docs-example="exampleName"
97+ ></div>` ,
98+ ) ;
9499 } ) ;
95100
96101 it ( 'generates html using old API' , ( ) => {
0 commit comments