Skip to content

Commit

Permalink
style: fix latest styling issues caused by the ava refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Apr 25, 2019
1 parent 4df0c72 commit fe9600b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down
4 changes: 2 additions & 2 deletions test/verify.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit fe9600b

Please sign in to comment.