mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 08:27:03 +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,16 +1,15 @@
|
|||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const loadConfig = require('../../lib/loader/config');
|
||||
|
||||
describe('loadConfig', () => {
|
||||
const simpleDir = path.join(__dirname, '__fixtures__', 'simple');
|
||||
const customDir = path.join(__dirname, '__fixtures__', 'custom');
|
||||
|
||||
test('simple', () => {
|
||||
expect(loadConfig(simpleDir)).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('custom', () => {
|
||||
expect(loadConfig(customDir)).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
const path = require('path');
|
||||
const loadConfig = require('../../lib/loader/config');
|
||||
|
||||
describe('loadConfig', () => {
|
||||
const simpleDir = path.join(__dirname, '__fixtures__', 'simple');
|
||||
const customDir = path.join(__dirname, '__fixtures__', 'custom');
|
||||
|
||||
test('simple', () => {
|
||||
expect(loadConfig(simpleDir)).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('custom', () => {
|
||||
expect(loadConfig(customDir)).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue