Skip to content

Commit

Permalink
test: Fix failing windows path check.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Nov 8, 2023
1 parent 447d455 commit c54096e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/cli/tests/bin_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ mod bin {
let assert = cmd.arg("bin").arg("npm").arg("9.0.0").assert();

if cfg!(windows) {
assert.stdout(predicate::str::contains("tools\\npm\\9.0.0\\bin/npm.cmd"));
assert.stdout(predicate::str::contains(
"tools\\npm\\9.0.0\\bin/npm-cli.js",
));
} else {
assert.stdout(predicate::str::contains("tools/npm/9.0.0/bin/npm"));
assert.stdout(predicate::str::contains("tools/npm/9.0.0/bin/npm-cli.js"));
}
}

Expand Down

0 comments on commit c54096e

Please sign in to comment.