mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-13 00:57:53 +02:00
v2: prepare to move
This commit is contained in:
parent
dc7ef96849
commit
45736200b0
172 changed files with 0 additions and 0 deletions
24
v2/test/load/routes.test.js
Normal file
24
v2/test/load/routes.test.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
import genRoutesConfig from '@lib/load/routes';
|
||||
import loadSetup from '../loadSetup';
|
||||
|
||||
describe('genRoutesConfig', () => {
|
||||
test('simple website', async () => {
|
||||
const props = await loadSetup('simple');
|
||||
await genRoutesConfig(props);
|
||||
});
|
||||
|
||||
test('versioned website', async () => {
|
||||
const props = await loadSetup('versioned');
|
||||
await genRoutesConfig(props);
|
||||
});
|
||||
|
||||
test('versioned & translated website', async () => {
|
||||
const props = await loadSetup('transversioned');
|
||||
await genRoutesConfig(props);
|
||||
});
|
||||
|
||||
test('translated website', async () => {
|
||||
const props = await loadSetup('translated');
|
||||
await genRoutesConfig(props);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue