Skip to content

Commit 06da4df

Browse files
authored
Merge pull request #3 from nuochong/dev
fix: update test cases (vuejs#238)
2 parents 4f76ba5 + c3f081e commit 06da4df

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/@vuepress/shared-utils/__tests__/parseHeaders.spec.ts

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ describe('parseHeaders', () => {
1919
'\\*vue\\*': '*vue*',
2020
'\\!vue\\!': '!vue!',
2121

22+
// #2688
23+
'[vue](vuejs.org) / [vue](vuejs.org)': 'vue / vue',
24+
'[\\<ins>](vuejs.org)': '<ins>',
25+
2226
// #564 For multiple markdown tokens
2327
'`a` and `b`': 'a and b',
2428
'***bold and italic***': 'bold and italic',

packages/@vuepress/shared-utils/__tests__/removeNonCodeWrappedHTML.spec.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ test('removeNonCodeWrappedHTML', () => {
4444
'# H1 `<Comp></Comp>` H2': '# H1 `<Comp></Comp>` H2',
4545
'# H1 `<Comp a="b"></Comp>` H2': '# H1 `<Comp a="b"></Comp>` H2',
4646
'# H1 `<Comp/>` H2': '# H1 `<Comp/>` H2',
47-
'# H1 `<Comp a="b"/>` H2': '# H1 `<Comp a="b"/>` H2'
47+
'# H1 `<Comp a="b"/>` H2': '# H1 `<Comp a="b"/>` H2',
48+
49+
// #2688
50+
'# \\<ins>': '# \\<ins>'
4851
}
4952

5053
Object.keys(asserts).forEach(input => {

0 commit comments

Comments
 (0)