Skip to content

Commit

Permalink
Only bats_require_minimum_version with Bats 1.7.0+.
Browse files Browse the repository at this point in the history
  • Loading branch information
xwmx committed Jul 17, 2023
1 parent c6983d5 commit 1bacb23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
# bats_require_minimum_version
#
# https://github.com/bats-core/bats-core/blob/master/docs/source/writing-tests.md
bats_require_minimum_version 1.5.0
if ! bats_version_lt "${BATS_VERSION}" "1.7.0"
then
bats_require_minimum_version 1.5.0
fi

# _setup()
#
Expand Down

0 comments on commit 1bacb23

Please sign in to comment.