Skip to content

Commit f54e9af

Browse files
greenkeeper[bot]pvdlg
authored andcommitted
chore(package): update ava to version 1.0.1
1 parent f18fbd4 commit f54e9af

11 files changed

+34
-34
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"parse-json": "^4.0.0"
2525
},
2626
"devDependencies": {
27-
"ava": "^0.25.0",
27+
"ava": "^1.0.1",
2828
"codecov": "^3.0.0",
2929
"commitizen": "^3.0.0",
3030
"cz-conventional-changelog": "^2.0.0",

test/add-channel.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test('Throw "Error" if the addChannel script does not returns 0', async t => {
5151
const pluginConfig = {addChannelCmd: 'exit 1'};
5252
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger, options: {}};
5353

54-
await t.throws(addChannel(pluginConfig, context), Error);
54+
await t.throwsAsync(addChannel(pluginConfig, context), Error);
5555
});
5656

5757
test('Use "cmd" if defined and "addChannelCmd" is not', async t => {

test/analyze-commits.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test('Throw Error if if the analyzeCommits script does not returns 0', async t =
3232
const pluginConfig = {analyzeCommitsCmd: 'exit 1'};
3333
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
3434

35-
await t.throws(analyzeCommits(pluginConfig, context), Error);
35+
await t.throwsAsync(analyzeCommits(pluginConfig, context), Error);
3636
});
3737

3838
test('Use "cmd" if defined and "analyzeCommitsCmd" is not', async t => {

test/fail.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@ test('Execute script in fail step', async t => {
1616
const pluginConfig = {failCmd: './test/fixtures/echo-args.sh'};
1717
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
1818

19-
await t.notThrows(fail(pluginConfig, context));
19+
await t.notThrowsAsync(fail(pluginConfig, context));
2020
});
2121

2222
test('Throw "Error" if the fail script does not returns 0', async t => {
2323
const pluginConfig = {failCmd: 'exit 1'};
2424
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
2525

26-
await t.throws(fail(pluginConfig, context), Error);
26+
await t.throwsAsync(fail(pluginConfig, context), Error);
2727
});
2828

2929
test('Use "cmd" if defined and "failCmd" is not', async t => {
3030
const pluginConfig = {cmd: './test/fixtures/echo-args.sh'};
3131
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
3232

33-
await t.notThrows(fail(pluginConfig, context));
33+
await t.notThrowsAsync(fail(pluginConfig, context));
3434
});
3535

3636
test('Use "failCmd" even if "cmd" is defined', async t => {
3737
const pluginConfig = {failCmd: './test/fixtures/echo-args.sh', cmd: 'exit 1'};
3838
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
3939

40-
await t.notThrows(fail(pluginConfig, context));
40+
await t.notThrowsAsync(fail(pluginConfig, context));
4141
});

test/generate-notes.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test('Throw "Error" if if the generateNotes script does not returns 0', async t
2424
const pluginConfig = {generateNotesCmd: 'exit 1'};
2525
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
2626

27-
await t.throws(generateNotes(pluginConfig, context), Error);
27+
await t.throwsAsync(generateNotes(pluginConfig, context), Error);
2828
});
2929

3030
test('Use "cmd" if defined and "generateNotesCmd" is not', async t => {

test/integration.test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import test from 'ava';
22
import m from '..';
33

44
test('Skip step if neither "cmd" nor step cmd is defined', async t => {
5-
await t.notThrows(m.verifyConditions({}, {}));
6-
await t.notThrows(m.analyzeCommits({}, {}));
7-
await t.notThrows(m.verifyRelease({}, {}));
8-
await t.notThrows(m.generateNotes({}, {}));
9-
await t.notThrows(m.prepare({}, {}));
10-
await t.notThrows(m.publish({}, {}));
11-
await t.notThrows(m.addChannel({}, {}));
12-
await t.notThrows(m.success({}, {}));
13-
await t.notThrows(m.fail({}, {}));
5+
await t.notThrowsAsync(m.verifyConditions({}, {}));
6+
await t.notThrowsAsync(m.analyzeCommits({}, {}));
7+
await t.notThrowsAsync(m.verifyRelease({}, {}));
8+
await t.notThrowsAsync(m.generateNotes({}, {}));
9+
await t.notThrowsAsync(m.prepare({}, {}));
10+
await t.notThrowsAsync(m.publish({}, {}));
11+
await t.notThrowsAsync(m.addChannel({}, {}));
12+
await t.notThrowsAsync(m.success({}, {}));
13+
await t.notThrowsAsync(m.fail({}, {}));
1414
});

test/prepare.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@ test('Execute script in prepare step', async t => {
1616
const pluginConfig = {prepareCmd: './test/fixtures/echo-args.sh'};
1717
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
1818

19-
await t.notThrows(prepare(pluginConfig, context));
19+
await t.notThrowsAsync(prepare(pluginConfig, context));
2020
});
2121

2222
test('Throw "Error" if the prepare script does not returns 0', async t => {
2323
const pluginConfig = {prepareCmd: 'exit 1'};
2424
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
2525

26-
await t.throws(prepare(pluginConfig, context), Error);
26+
await t.throwsAsync(prepare(pluginConfig, context), Error);
2727
});
2828

2929
test('Use "cmd" if defined and "prepareCmd" is not', async t => {
3030
const pluginConfig = {cmd: './test/fixtures/echo-args.sh'};
3131
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
3232

33-
await t.notThrows(prepare(pluginConfig, context));
33+
await t.notThrowsAsync(prepare(pluginConfig, context));
3434
});
3535

3636
test('Use "prepareCmd" even if "cmd" is defined', async t => {
3737
const pluginConfig = {prepareCmd: './test/fixtures/echo-args.sh', cmd: 'exit 1'};
3838
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
3939

40-
await t.notThrows(prepare(pluginConfig, context));
40+
await t.notThrowsAsync(prepare(pluginConfig, context));
4141
});

test/publish.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test('Throw "Error" if the publish script does not returns 0', async t => {
5151
const pluginConfig = {publishCmd: 'exit 1'};
5252
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger, options: {}};
5353

54-
await t.throws(publish(pluginConfig, context), Error);
54+
await t.throwsAsync(publish(pluginConfig, context), Error);
5555
});
5656

5757
test('Use "cmd" if defined and "publishCmd" is not', async t => {

test/success.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@ test('Execute script in success step', async t => {
1616
const pluginConfig = {successCmd: './test/fixtures/echo-args.sh'};
1717
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
1818

19-
await t.notThrows(success(pluginConfig, context));
19+
await t.notThrowsAsync(success(pluginConfig, context));
2020
});
2121

2222
test('Throw "Error" if the success script does not returns 0', async t => {
2323
const pluginConfig = {successCmd: 'exit 1'};
2424
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
2525

26-
await t.throws(success(pluginConfig, context), Error);
26+
await t.throwsAsync(success(pluginConfig, context), Error);
2727
});
2828

2929
test('Use "cmd" if defined and "successCmd" is not', async t => {
3030
const pluginConfig = {cmd: './test/fixtures/echo-args.sh'};
3131
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
3232

33-
await t.notThrows(success(pluginConfig, context));
33+
await t.notThrowsAsync(success(pluginConfig, context));
3434
});
3535

3636
test('Use "successCmd" even if "cmd" is defined', async t => {
3737
const pluginConfig = {successCmd: './test/fixtures/echo-args.sh', cmd: 'exit 1'};
3838
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
3939

40-
await t.notThrows(success(pluginConfig, context));
40+
await t.notThrowsAsync(success(pluginConfig, context));
4141
});

test/verify-confitions.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ test('Return if the verifyConditions script returns 0', async t => {
1616
const pluginConfig = {verifyConditionsCmd: 'exit 0'};
1717
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger, options: {}};
1818

19-
await t.notThrows(verifyConditions(pluginConfig, context));
19+
await t.notThrowsAsync(verifyConditions(pluginConfig, context));
2020
});
2121

2222
test('Throw "SemanticReleaseError" if the verifyConditions script does not returns 0', async t => {
2323
const pluginConfig = {verifyConditionsCmd: 'exit 1'};
2424
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger, options: {}};
2525

26-
const error = await t.throws(verifyConditions(pluginConfig, context));
26+
const error = await t.throwsAsync(verifyConditions(pluginConfig, context));
2727

2828
t.is(error.name, 'SemanticReleaseError');
2929
t.is(error.code, 'EVERIFYCONDITIONS');
@@ -33,12 +33,12 @@ test('Use "cmd" if defined and "verifyConditionsCmd" is not', async t => {
3333
const pluginConfig = {cmd: './test/fixtures/echo-args.sh'};
3434
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
3535

36-
await t.notThrows(verifyConditions(pluginConfig, context));
36+
await t.notThrowsAsync(verifyConditions(pluginConfig, context));
3737
});
3838

3939
test('Use "verifyConditionsCmd" even if "cmd" is defined', async t => {
4040
const pluginConfig = {verifyConditionsCmd: './test/fixtures/echo-args.sh', cmd: 'exit 1'};
4141
const context = {stdout: t.context.stdout, stderr: t.context.stderr, logger: t.context.logger};
4242

43-
await t.notThrows(verifyConditions(pluginConfig, context));
43+
await t.notThrowsAsync(verifyConditions(pluginConfig, context));
4444
});

0 commit comments

Comments
 (0)