mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 23:40:39 +02:00
feat:docs translation + versioning 💥
This commit is contained in:
parent
31d333b82f
commit
0f38ae3979
20 changed files with 1133 additions and 520 deletions
|
@ -5,7 +5,24 @@ describe('loadPages', () => {
|
|||
test('valid pages', async () => {
|
||||
const pagesDir = path.join(__dirname, '__fixtures__', 'simple-pages');
|
||||
const pagesData = await loadPages(pagesDir);
|
||||
expect(pagesData).toMatchSnapshot();
|
||||
expect(pagesData).toEqual([
|
||||
{
|
||||
path: '/',
|
||||
source: 'index.js'
|
||||
},
|
||||
{
|
||||
path: '/foo',
|
||||
source: 'foo.js'
|
||||
},
|
||||
{
|
||||
path: '/foo/',
|
||||
source: 'foo/index.js'
|
||||
},
|
||||
{
|
||||
path: '/bar/baz',
|
||||
source: 'bar/baz.js'
|
||||
}
|
||||
]);
|
||||
expect(pagesData).not.toBeNull();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue