Skip to content

Commit 10a5575

Browse files
committed
test($markdown-containers): cover override case
1 parent 6048eb9 commit 10a5575

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

test/markdown/__snapshots__/containers.spec.js.snap

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ exports[`containers tip 1`] = `
1414
</div>
1515
`;
1616

17+
exports[`containers tip-override 1`] = `
18+
<div class="tip custom-block">
19+
<p class="custom-block-title">提示</p>
20+
<p>I am a tip</p>
21+
</div>
22+
`;
23+
1724
exports[`containers v-pre 1`] = `
1825
<div v-pre>
1926
<p>I am a v-pre</p>

test/markdown/containers.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import containers from '@/markdown/containers.js'
44
const mdC = Md().use(containers)
55

66
describe('containers', () => {
7-
const containerLabels = ['tip', 'warning', 'danger', 'v-pre']
7+
const containerLabels = ['tip', 'tip-override', 'warning', 'danger', 'v-pre']
88
containerLabels.forEach(label => {
99
test(label, async () => {
1010
const input = await getFragment(`container-${label}`)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
::: tip 提示
2+
I am a tip
3+
:::

0 commit comments

Comments
 (0)