mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 10:48:05 +02:00
test: rename 'fixtures' to '__fixtures__' (#6474)
* test: rename 'fixutes' to '__fixtures__' * test: rename '__test' to '__tests__' * test: update snapshot
This commit is contained in:
parent
02186a2b20
commit
37be796aa8
16 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ import plugin from '../index';
|
|||
import headings from '../../headings/index';
|
||||
|
||||
const processFixture = async (name, options?) => {
|
||||
const path = join(__dirname, 'fixtures', `${name}.md`);
|
||||
const path = join(__dirname, '__fixtures__', `${name}.md`);
|
||||
const file = await vfile.read(path);
|
||||
const result = await remark()
|
||||
.use(headings)
|
||||
|
|
|
@ -12,14 +12,14 @@ import vfile from 'to-vfile';
|
|||
import plugin from '..';
|
||||
|
||||
const processFixture = async (name) => {
|
||||
const path = join(__dirname, 'fixtures', name);
|
||||
const path = join(__dirname, '__fixtures__', name);
|
||||
const file = await vfile.read(path);
|
||||
const result = await remark().use(mdx).use(plugin).process(file);
|
||||
return result.toString();
|
||||
};
|
||||
|
||||
const processFixtureAST = async (name) => {
|
||||
const path = join(__dirname, 'fixtures', name);
|
||||
const path = join(__dirname, '__fixtures__', name);
|
||||
const file = await vfile.read(path);
|
||||
return remark().use(mdx).use(plugin).parse(file);
|
||||
};
|
||||
|
|
|
@ -14,7 +14,7 @@ import path from 'path';
|
|||
import mdx from 'remark-mdx';
|
||||
|
||||
const processFixture = async (name: string, options?: {sync?: boolean}) => {
|
||||
const filePath = path.join(__dirname, 'fixtures', `${name}.md`);
|
||||
const filePath = path.join(__dirname, '__fixtures__', `${name}.md`);
|
||||
const file = await vfile.read(filePath);
|
||||
const result = await remark()
|
||||
.use(mdx)
|
||||
|
|
Loading…
Add table
Reference in a new issue