mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-14 09:37:37 +02:00
chore(loader): prettier & eslint
This commit is contained in:
parent
d2e12a8e61
commit
7116374adf
5 changed files with 108 additions and 118 deletions
|
@ -1,18 +1,17 @@
|
|||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const loadBlog = require('../../lib/loader/blog');
|
||||
|
||||
describe('loadBlog', () => {
|
||||
const simpleDir = path.join(__dirname, '__fixtures__', 'simple');
|
||||
const customDir = path.join(__dirname, '__fixtures__', 'custom');
|
||||
|
||||
test('simple', async () => {
|
||||
const blogDatas = await loadBlog(simpleDir);
|
||||
expect(blogDatas).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('custom', async () => {
|
||||
const blogDatas = await loadBlog(customDir);
|
||||
expect(blogDatas).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
const path = require('path');
|
||||
const loadBlog = require('../../lib/loader/blog');
|
||||
|
||||
describe('loadBlog', () => {
|
||||
const simpleDir = path.join(__dirname, '__fixtures__', 'simple');
|
||||
const customDir = path.join(__dirname, '__fixtures__', 'custom');
|
||||
|
||||
test('simple', async () => {
|
||||
const blogDatas = await loadBlog(simpleDir);
|
||||
expect(blogDatas).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('custom', async () => {
|
||||
const blogDatas = await loadBlog(customDir);
|
||||
expect(blogDatas).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue