mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +02:00
feat: allow custom docsUrl & custom permalink
This commit is contained in:
parent
185f7b1ed1
commit
b99605f725
12 changed files with 270 additions and 177 deletions
|
@ -4,7 +4,7 @@ import path from 'path';
|
|||
describe('loadPages', () => {
|
||||
test('valid pages', async () => {
|
||||
const pagesDir = path.join(__dirname, '__fixtures__', 'simple-pages');
|
||||
let pagesData = await loadPages(pagesDir);
|
||||
const pagesData = await loadPages(pagesDir);
|
||||
pagesData.sort((a, b) => a.path > b.path); // because it was unordered
|
||||
expect(pagesData).toEqual([
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue