File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,10 @@ load test_helper
1919@test ' Ignores non-matching installed versions' {
2020 in_package_for_engine ' ^1.0.0'
2121
22- # For unknown reasons, nodenv-version succeeds when version-name fails,
23- # so we're testing version-name directly
24- run nodenv version-name
25- assert_failure " package-json-engine: no version satisfying \` ^1.0.0' installed"
26-
27- # `which` should fail similarly
28- run nodenv which node
29- assert_failure " package-json-engine: no version satisfying \` ^1.0.0' installed"
22+ run nodenv version
23+ # note the command completes successfully
24+ assert_success " package-json-engine: no version satisfying \` ^1.0.0' installed
25+ (set by package-json-engine matching ^1.0.0)"
3026}
3127
3228@test ' Prefers nodenv-local over package.json' {
You can’t perform that action at this time.
0 commit comments