From d83ecbc553d043ef5a05d7a967edfcbfc1dae0f2 Mon Sep 17 00:00:00 2001 From: Armano Date: Fri, 7 Feb 2020 03:21:18 +0100 Subject: [PATCH] test(parse): fix not awaited parse tests --- @commitlint/parse/src/index.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/@commitlint/parse/src/index.test.ts b/@commitlint/parse/src/index.test.ts index 5e0f980026..591bcc69ce 100644 --- a/@commitlint/parse/src/index.test.ts +++ b/@commitlint/parse/src/index.test.ts @@ -1,12 +1,12 @@ import importFrom from 'import-from'; import parse from '.'; -test('throws when called without params', () => { - 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'); }); -test('throws when called with empty message', () => { - 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'); }); test('returns object with raw message', async () => {