Skip to content

Commit

Permalink
Fix tests for rightToc
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Mar 18, 2020
1 parent 907dd1b commit f0fdcc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ exports[`non text phrasing content 1`] = `
},
{
value: '<i>HTML</i>',
id: 'ihtmli',
id: 'html',
children: []
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ import remark from 'remark';
import mdx from 'remark-mdx';
import vfile from 'to-vfile';
import plugin from '../index';
import slug from '../../slug/index';

const processFixture = async (name, options) => {
const path = join(__dirname, 'fixtures', `${name}.md`);
const file = await vfile.read(path);
const result = await remark()
.use(slug)
.use(mdx)
.use(plugin, options)
.process(file);
Expand Down

0 comments on commit f0fdcc6

Please sign in to comment.