提交 10a55755 编写于 作者: U ULIVZ

test($markdown-containers): cover override case

上级 6048eb9f
......@@ -14,6 +14,13 @@ exports[`containers tip 1`] = `
</div>
`;
exports[`containers tip-override 1`] = `
<div class="tip custom-block">
<p class="custom-block-title">提示</p>
<p>I am a tip</p>
</div>
`;
exports[`containers v-pre 1`] = `
<div v-pre>
<p>I am a v-pre</p>
......
......@@ -4,7 +4,7 @@ import containers from '@/markdown/containers.js'
const mdC = Md().use(containers)
describe('containers', () => {
const containerLabels = ['tip', 'warning', 'danger', 'v-pre']
const containerLabels = ['tip', 'tip-override', 'warning', 'danger', 'v-pre']
containerLabels.forEach(label => {
test(label, async () => {
const input = await getFragment(`container-${label}`)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册