From fe9600bb1d5e82e48e7f9606047be3556867ae3c Mon Sep 17 00:00:00 2001 From: Cedric van Putten Date: Thu, 25 Apr 2019 22:40:43 +0200 Subject: [PATCH] style: fix latest styling issues caused by the ava refactor --- test/integration.test.js | 9 +++------ test/verify.test.js | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/test/integration.test.js b/test/integration.test.js index 3d2ef8b..7d252f2 100644 --- a/test/integration.test.js +++ b/test/integration.test.js @@ -130,12 +130,9 @@ test('Throw SemanticReleaseError if config is invalid', async t => { const message = 42; const assets = true; - const verify = await t.throwsAsync(() => ( - t.context.m.verifyConditions( - {message, assets}, - {options: {}, logger: t.context.logger} - ) - )); + const verify = await t.throwsAsync(() => + t.context.m.verifyConditions({message, assets}, {options: {}, logger: t.context.logger}) + ); const errors = [...verify]; diff --git a/test/verify.test.js b/test/verify.test.js index 17438b9..a61735c 100644 --- a/test/verify.test.js +++ b/test/verify.test.js @@ -122,9 +122,9 @@ test('Throw SemanticReleaseError if "message" option is a whitespace String', as }); test('Throw SemanticReleaseError if unknown branches are provided to merge with', async t => { - const [error] = await t.throwsAsync(() => ( + const [error] = await t.throwsAsync(() => verify({branchMerges: ['abc']}, {options: t.context.options}, t.context.logger) - )); + ); t.is(error.name, 'SemanticReleaseError'); t.is(error.code, 'EINVALIDMERGEBRANCH');