Skip to content

Commit 421a46d

Browse files
authored
test: fix not awaited parse tests (#971)
1 parent c44adfd commit 421a46d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

@commitlint/parse/src/index.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import importFrom from 'import-from';
22
import parse from '.';
33

4-
test('throws when called without params', () => {
5-
expect((parse as any)()).rejects.toThrowError('Expected a raw commit');
4+
test('throws when called without params', async () => {
5+
await expect((parse as any)()).rejects.toThrowError('Expected a raw commit');
66
});
77

8-
test('throws when called with empty message', () => {
9-
expect(parse('')).rejects.toThrowError('Expected a raw commit');
8+
test('throws when called with empty message', async () => {
9+
await expect(parse('')).rejects.toThrowError('Expected a raw commit');
1010
});
1111

1212
test('returns object with raw message', async () => {

0 commit comments

Comments
 (0)