Skip to content

Commit 3b8bbd2

Browse files
committed
fix test
1 parent 193d941 commit 3b8bbd2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/unit/render.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,14 +269,14 @@ describe('render', function() {
269269
it('ignore-html-comments', async function() {
270270
const { docsify } = await init();
271271
const output = docsify.compiler.compile(
272-
'## h2 tag <!-- {docsify-ignore} -->'
272+
'## h2 tag ignore <!-- {docsify-ignore} -->'
273273
);
274274
expectSameDom(
275275
output,
276276
`
277-
<h2 id="h2-tag">
278-
<a href="#/?id=h2-tag" data-id="h2-tag" class="anchor">
279-
<span>h2 tag </span>
277+
<h2 id="h2-tag-ignore">
278+
<a href="#/?id=h2-tag-ignore" data-id="h2-tag-ignore" class="anchor">
279+
<span>h2 tag ignore </span>
280280
</a>
281281
</h2>`
282282
);
@@ -306,14 +306,14 @@ describe('render', function() {
306306
it('ignore-all-html-comments', async function() {
307307
const { docsify } = await init();
308308
const output = docsify.compiler.compile(
309-
`# h1 tag <!-- {docsify-ignore-all} -->` + `\n## h2 tag`
309+
`# h1 tag ignore <!-- {docsify-ignore-all} -->` + `\n## h2 tag`
310310
);
311311
expectSameDom(
312312
output,
313313
`
314314
<h1 id="h1-tag">
315-
<a href="#/?id=h1-tag" data-id="h1-tag" class="anchor">
316-
<span>h1 tag </span>
315+
<a href="#/?id=h1-tag-ignore" data-id="h1-tag-ignore" class="anchor">
316+
<span>h1 tag ignore </span>
317317
</a>
318318
</h1>
319319
<h2 id="h2-tag">

0 commit comments

Comments
 (0)