mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 02:12:36 +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
|
@ -39,11 +39,7 @@ describe('server utils', () => {
|
|||
const css = await utils.minifyCss(testCss);
|
||||
expect(css).toMatchSnapshot();
|
||||
|
||||
try {
|
||||
await utils.minifyCss(notCss);
|
||||
} catch (error) {
|
||||
expect(error).toMatchSnapshot();
|
||||
}
|
||||
await expect(utils.minifyCss(notCss)).rejects.toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('autoprefix css', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue