Skip to content

Commit

Permalink
fix: update test cases (vuejs#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuochong committed Nov 17, 2020
1 parent 97ce8d7 commit c3f081e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ describe('parseHeaders', () => {
'\\*vue\\*': '*vue*',
'\\!vue\\!': '!vue!',

// #2688
'[vue](vuejs.org) / [vue](vuejs.org)': 'vue / vue',
'[\\<ins>](vuejs.org)': '<ins>',

// #564 For multiple markdown tokens
'`a` and `b`': 'a and b',
'***bold and italic***': 'bold and italic',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ test('removeNonCodeWrappedHTML', () => {
'# H1 `<Comp></Comp>` H2': '# H1 `<Comp></Comp>` H2',
'# H1 `<Comp a="b"></Comp>` H2': '# H1 `<Comp a="b"></Comp>` H2',
'# H1 `<Comp/>` H2': '# H1 `<Comp/>` H2',
'# H1 `<Comp a="b"/>` H2': '# H1 `<Comp a="b"/>` H2'
'# H1 `<Comp a="b"/>` H2': '# H1 `<Comp a="b"/>` H2',

// #2688
'# \\<ins>': '# \\<ins>'
}

Object.keys(asserts).forEach(input => {
Expand Down

0 comments on commit c3f081e

Please sign in to comment.