chore(v2): fix async tests (#2906)

This commit is contained in:
Sébastien Lorber 2020-06-08 19:10:13 +02:00 committed by GitHub
parent 66716d1619
commit 08359dd3ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 28 deletions

View file

@ -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 () => {