Skip to content

Commit 7c05697

Browse files
committed
test: adapt integration tests
1 parent bbe497d commit 7c05697

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/integration.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ test.serial('Throw SemanticReleaseError if invalid config', async (t) => {
101101
repositoryUrl: 'invalid_url',
102102
};
103103

104-
const errors = [
105-
...(await t.throwsAsync(t.context.m.verifyConditions({}, {cwd, env, options, logger: t.context.logger}))),
106-
];
104+
const {errors} = await t.throwsAsync(t.context.m.verifyConditions({}, {cwd, env, options, logger: t.context.logger}));
107105

108106
t.is(errors[0].name, 'SemanticReleaseError');
109107
t.is(errors[0].code, 'EINVALIDASSETS');

0 commit comments

Comments
 (0)