mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-08 06:37:18 +02:00
17 lines
507 B
JavaScript
17 lines
507 B
JavaScript
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();
|
|
});
|
|
});
|