mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-23 22:17:00 +02:00
Prettify all JavaScript files (#964)
* Prettify all JavaScript files * Make trailingComma all * Delete v2/.prettierignore * Remove v2 Prettier commands in package.json
This commit is contained in:
parent
a1de6dab04
commit
9d4a5d5359
101 changed files with 441 additions and 473 deletions
|
@ -21,8 +21,8 @@ describe('loadSidebars', () => {
|
|||
const env = {
|
||||
versioning: {
|
||||
enabled: true,
|
||||
versions: ['1.0.1', '1.0.0']
|
||||
}
|
||||
versions: ['1.0.1', '1.0.0'],
|
||||
},
|
||||
};
|
||||
const siteDir = path.join(fixtures, 'versioned-site');
|
||||
const result = loadSidebars({siteDir, env});
|
||||
|
@ -33,14 +33,14 @@ describe('loadSidebars', () => {
|
|||
const env = {
|
||||
versioning: {
|
||||
enabled: true,
|
||||
versions: ['2.0.0']
|
||||
}
|
||||
versions: ['2.0.0'],
|
||||
},
|
||||
};
|
||||
const siteDir = path.join(fixtures, 'versioned-site');
|
||||
expect(() => {
|
||||
loadSidebars({siteDir, env});
|
||||
}).toThrowErrorMatchingInlineSnapshot(
|
||||
`"Failed to load versioned_sidebars/version-2.0.0-sidebars.json. It does not exist."`
|
||||
`"Failed to load versioned_sidebars/version-2.0.0-sidebars.json. It does not exist."`,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue