Skip to content

Commit 3aba523

Browse files
Fixed tests that were failing due to changed dependency behavior
1 parent 4b1db7b commit 3aba523

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/specs/cli.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe("bump", () => {
1414
// It will prompt the user and wait forever, so add a timeout.
1515
let cli = bump("");
1616

17-
expect(cli).to.have.stderr("Prompts can not be meaningfully rendered in non-TTY environments\n");
17+
expect(cli.stdout).to.match(/The current version in package.json is 1.0.0\nHow would you like to bump it\?/);
1818
});
1919

2020
it("should error if an invalid argument is used", () => {
@@ -46,7 +46,7 @@ describe("bump", () => {
4646
it("should print a more detailed error if DEBUG is set", () => {
4747
files.create("package.json", { version: "" });
4848

49-
let cli = bump("major", { env: { ...process.env, DEBUG: "true" }});
49+
let cli = bump("major", { env: { ...process.env, DEBUG: "true", NODE_OPTIONS: "" }});
5050

5151
expect(cli).to.have.stdout("");
5252
expect(cli).to.have.exitCode(1);

0 commit comments

Comments
 (0)