feat:docs translation + versioning 💥

This commit is contained in:
endiliey 2018-09-07 20:41:04 +08:00
parent 31d333b82f
commit 0f38ae3979
20 changed files with 1133 additions and 520 deletions

View file

@ -0,0 +1,23 @@
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();
});
});