We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c44adfd commit 421a46dCopy full SHA for 421a46d
@commitlint/parse/src/index.test.ts
@@ -1,12 +1,12 @@
1
import importFrom from 'import-from';
2
import parse from '.';
3
4
-test('throws when called without params', () => {
5
- expect((parse as any)()).rejects.toThrowError('Expected a raw commit');
+test('throws when called without params', async () => {
+ await expect((parse as any)()).rejects.toThrowError('Expected a raw commit');
6
});
7
8
-test('throws when called with empty message', () => {
9
- expect(parse('')).rejects.toThrowError('Expected a raw commit');
+test('throws when called with empty message', async () => {
+ await expect(parse('')).rejects.toThrowError('Expected a raw commit');
10
11
12
test('returns object with raw message', async () => {
0 commit comments