Skip to content

Commit

Permalink
f test
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 29, 2020
1 parent 9637d57 commit ed0f93e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/src/modules/utils/parseMarkdown.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ describe('parseMarkdown', () => {
});

describe('prepareMarkdown', () => {
it('returns the table of contents with html stripped', () => {
it('returns the table of contents with html and emojis stripped', () => {
const markdown = `
# Support
## Community help (free)
### GitHub <img src="/static/images/logos/github.svg" width="24" height="24" alt="GitHub logo" loading="lazy" />
### Unofficial 👍
`;
// mock require.context
function requireRaw() {
Expand All @@ -48,7 +49,10 @@ describe('parseMarkdown', () => {

expect(toc).to.have.deep.ordered.members([
{
children: [{ hash: 'github', level: 3, text: 'GitHub' }],
children: [
{ hash: 'github', level: 3, text: 'GitHub' },
{ hash: 'unofficial', level: 3, text: 'Unofficial' },
],
hash: 'community-help-free',
level: 2,
text: 'Community help (free)',
Expand Down

0 comments on commit ed0f93e

Please sign in to comment.