mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-16 02:27:21 +02:00
feat: add blog loader
This commit is contained in:
parent
94c45e36cb
commit
d2e12a8e61
13 changed files with 633 additions and 25 deletions
|
@ -7,22 +7,10 @@ describe('loadConfig', () => {
|
|||
const customDir = path.join(__dirname, '__fixtures__', 'custom');
|
||||
|
||||
test('simple', () => {
|
||||
expect(loadConfig(simpleDir)).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
"description": "Hello World",
|
||||
"title": "Hello World",
|
||||
}
|
||||
`);
|
||||
expect(loadConfig(simpleDir)).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('custom', () => {
|
||||
expect(loadConfig(customDir)).toMatchInlineSnapshot(`
|
||||
Object {
|
||||
"base": "blogi",
|
||||
"description": "Hello World",
|
||||
"dest": "blogi",
|
||||
"title": "Hello World",
|
||||
}
|
||||
`);
|
||||
expect(loadConfig(customDir)).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue