mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-16 09:42:35 +02:00
chore: eslint & prettier nits
This commit is contained in:
parent
8f493605ad
commit
084063eabe
15 changed files with 152 additions and 142 deletions
|
@ -1,21 +1,21 @@
|
|||
import loadDocs from '@lib/load/docs.js';
|
||||
import path from 'path';
|
||||
|
||||
describe('loadDocs', () => {
|
||||
test('simple docs', async () => {
|
||||
const docsDir = path.join(__dirname, '__fixtures__', 'simple-docs');
|
||||
const docsData = await loadDocs(docsDir);
|
||||
expect(docsData).toMatchSnapshot();
|
||||
expect(docsData).not.toBeNull();
|
||||
});
|
||||
|
||||
test('no docs', async () => {
|
||||
const nonExistingDocsDir = path.join(
|
||||
__dirname,
|
||||
'__fixtures__',
|
||||
'nonExistingDocs'
|
||||
);
|
||||
const docsData = await loadDocs(nonExistingDocsDir);
|
||||
expect(docsData).toEqual([]);
|
||||
});
|
||||
});
|
||||
import loadDocs from '@lib/load/docs';
|
||||
import path from 'path';
|
||||
|
||||
describe('loadDocs', () => {
|
||||
test('simple docs', async () => {
|
||||
const docsDir = path.join(__dirname, '__fixtures__', 'simple-docs');
|
||||
const docsData = await loadDocs(docsDir);
|
||||
expect(docsData).toMatchSnapshot();
|
||||
expect(docsData).not.toBeNull();
|
||||
});
|
||||
|
||||
test('no docs', async () => {
|
||||
const nonExistingDocsDir = path.join(
|
||||
__dirname,
|
||||
'__fixtures__',
|
||||
'nonExistingDocs'
|
||||
);
|
||||
const docsData = await loadDocs(nonExistingDocsDir);
|
||||
expect(docsData).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue