mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-05 21:27:24 +02:00
24 lines
664 B
JavaScript
24 lines
664 B
JavaScript
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);
|
|
});
|
|
});
|