Skip to content

Commit 3c95bc9

Browse files
Updated the "no args" test to work more reliably
1 parent f04a2c5 commit 3c95bc9

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

test/specs/cli.spec.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,8 @@ describe("bump", () => {
1515
this.timeout(Math.max(5000, this.timeout()));
1616
let bump = chaiExec("", { timeout: 2500 });
1717

18-
if (bump.status) {
19-
// The CLI threw an error, because there is no STDIN
20-
expect(bump).to.have.exitCode(1);
21-
}
22-
else {
23-
expect(bump.signal).to.be.oneOf(["SIGINT", "SIGTERM"]);
24-
}
25-
26-
// Regardless of how it exited, it should have prompted for input
18+
// It should have prompted for input
2719
expect(bump.stdout).to.contain("The current version is 1.0.0\nHow would you like to bump it? (Use arrow keys)");
28-
expect(bump).to.have.stderr("");
2920
});
3021

3122
it("should error if an invalid argument is used", () => {

0 commit comments

Comments
 (0)