Skip to content

Commit a0dcdea

Browse files
committed
Use the newer helpers
1 parent bbdc252 commit a0dcdea

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/nodenv-package-json-engine.bats

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ load test_helper
2222
# For unknown reasons, nodenv-version succeeds when version-name fails,
2323
# so we're testing version-name directly
2424
run nodenv version-name
25-
assert [ "$output" = "package-json-engine: no version satisfying \`^1.0.0' installed" ]
26-
assert [ "$status" -eq 1 ]
25+
assert_failure "package-json-engine: no version satisfying \`^1.0.0' installed"
2726

2827
# `which` should fail similarly
2928
run nodenv which node
30-
assert echo "$output" | grep 'no version satisfying'
31-
assert [ "$status" -eq 1 ]
29+
assert_failure "package-json-engine: no version satisfying \`^1.0.0' installed"
3230
}
3331

3432
@test 'Prefers nodenv-local over package.json' {

0 commit comments

Comments
 (0)