@@ -9,7 +9,6 @@ fancyx='✗'
99checkmark=' ✓'
1010# # We need to create a new directory so that .hasrc file in the root does not get read by the `has` instance under test
1111setup () {
12-
1312 export PATH=" $BATS_TEST_DIRNAME /mocks:$PATH "
1413 export HAS_TMPDIR=" ${BATS_TMPDIR} /tmp-for-test"
1514 mkdir -p " ${HAS_TMPDIR} "
@@ -29,7 +28,7 @@ teardown() {
2928 local GIT_VERSION=" 2.39.5"
3029 export GIT_VERSION
3130
32- run has git
31+ run $ has git
3332
3433 echo " OUTPUT: ${lines[0]} " >&3
3534
@@ -43,7 +42,7 @@ teardown() {
4342 local UNZIP_VERSION=" 6.00"
4443 export UNZIP_VERSION
4544
46- run has unzip
45+ run $ has unzip
4746
4847 echo " OUTPUT: ${lines[0]} " >&3
4948
@@ -58,7 +57,7 @@ teardown() {
5857 local JAVA_VERSION=" 24.0.2"
5958 export JAVA_VERSION
6059
61- run has java
60+ run $ has java
6261
6362 echo " OUTPUT: ${lines[0]} " >&3
6463
@@ -72,7 +71,7 @@ teardown() {
7271 local COMPOSER_VERSION=" 2.7.2"
7372 export COMPOSER_VERSION
7473
75- run has composer
74+ run $ has composer
7675
7776 echo " OUTPUT: ${lines[0]} " >&3
7877
@@ -86,7 +85,7 @@ teardown() {
8685 local GO_VERSION=" 1.23.6"
8786 export GO_VERSION
8887
89- run has go
88+ run $ has go
9089
9190 echo " OUTPUT: ${lines[0]} " >&3
9291
@@ -97,7 +96,7 @@ teardown() {
9796}
9897
9998@test " fails gracefully for unknown command" {
100- run has notarealcmd
99+ run $ has notarealcmd
101100
102101 echo " OUTPUT: ${lines[0]} " >&3
103102
0 commit comments