mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-30 09:27:04 +02:00
chore(v2): fix async tests (#2906)
This commit is contained in:
parent
66716d1619
commit
08359dd3ca
4 changed files with 24 additions and 28 deletions
packages/docusaurus-plugin-content-docs/src/__tests__
|
@ -45,7 +45,7 @@ test('site with wrong sidebar file', async () => {
|
|||
const plugin = pluginContentDocs(context, {
|
||||
sidebarPath,
|
||||
});
|
||||
return plugin.loadContent().catch((e) => expect(e).toMatchSnapshot());
|
||||
await expect(plugin.loadContent()).rejects.toThrowErrorMatchingSnapshot();
|
||||
});
|
||||
|
||||
describe('empty/no docs website', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue