docusaurus/test/load/docs/index.test.js
2018-09-07 20:41:04 +08:00

23 lines
624 B
JavaScript

import loadSetup from '../../loadSetup';
describe('loadDocs', () => {
test('simple website', async () => {
const props = await loadSetup('simple');
expect(props).toMatchSnapshot();
});
test('versioned website', async () => {
const props = await loadSetup('versioned');
expect(props).toMatchSnapshot();
});
test('versioned & translated website', async () => {
const props = await loadSetup('transversioned');
expect(props).toMatchSnapshot();
});
test('translated website', async () => {
const props = await loadSetup('translated');
expect(props).toMatchSnapshot();
});
});