From c54096e450482f9bcf80f0407982d5f0081b9490 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Wed, 8 Nov 2023 11:22:47 -0800 Subject: [PATCH] test: Fix failing windows path check. --- crates/cli/tests/bin_test.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/cli/tests/bin_test.rs b/crates/cli/tests/bin_test.rs index f04db6871..82cfacb7f 100644 --- a/crates/cli/tests/bin_test.rs +++ b/crates/cli/tests/bin_test.rs @@ -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")); } }