test: rename 'fixtures' to '__fixtures__' (#6474)

* test: rename 'fixutes' to '__fixtures__'

* test: rename '__test' to '__tests__'

* test: update snapshot
This commit is contained in:
Nick Schonning 2022-01-26 20:30:09 -05:00 committed by GitHub
parent 02186a2b20
commit 37be796aa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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);
};

View 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)