Skip to content

Commit 1e185d4

Browse files
Updated error code tests
1 parent bd567af commit 1e185d4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/specs/cli.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("bump", () => {
2020
it("should error if an invalid argument is used", () => {
2121
let bump = chaiExec("--commit --help --fizzbuzz --tag");
2222

23-
expect(bump).to.have.exitCode(1);
23+
expect(bump).to.have.exitCode(9);
2424
expect(bump).to.have.stdout("");
2525
expect(bump.stderr).to.match(/^Unknown option: --fizzbuzz\n\nUsage: bump \[release\] \[options\] \[files...\]\n/);
2626
expect(bump.stderr).to.contain(manifest.description);
@@ -29,7 +29,7 @@ describe("bump", () => {
2929
it("should error if an invalid shorthand argument is used", () => {
3030
let bump = chaiExec("-chzt");
3131

32-
expect(bump).to.have.exitCode(1);
32+
expect(bump).to.have.exitCode(9);
3333
expect(bump).to.have.stdout("");
3434
expect(bump.stderr).to.match(/^Unknown option: -z\n\nUsage: bump \[release\] \[options\] \[files...\]\n/);
3535
expect(bump.stderr).to.contain(manifest.description);
@@ -38,7 +38,7 @@ describe("bump", () => {
3838
it("should error if an argument is missing its value", () => {
3939
let bump = chaiExec("--commit --help --preid --tag");
4040

41-
expect(bump).to.have.exitCode(1);
41+
expect(bump).to.have.exitCode(9);
4242
expect(bump).to.have.stdout("");
4343
bump.stderr.should.match(
4444
/^The --preid option requires a value, such as "alpha", "beta", etc\.\n\nUsage: bump \[release\] \[options\] \[files...\]\n/

0 commit comments

Comments
 (0)