diff options
author | Gioele Barabucci <gioele@svario.it> | 2022-10-11 20:44:17 +0300 |
---|---|---|
committer | Gioele Barabucci <gioele@svario.it> | 2022-10-11 21:00:35 +0300 |
commit | 1cd4fa1d568473d076f3224f62f33291fa3daefb (patch) | |
tree | b5f801f5383681c859126c23c3e2509dca90dc61 | |
parent | ffe84ea5dd43b568851549b3e241db150c12929c (diff) |
test/test_helper.bash: Use bats_load_library to load bats-support
Instead of hard-coding `node_modules` in the path (source of various
issues: #38, #34), use the `bats_load_library` command to load
`bats-support`.
`bats_load_library` is available since Bats v1.6.
-rw-r--r-- | test/test_helper.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_helper.bash b/test/test_helper.bash index 65d366f..beb9298 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -1,5 +1,5 @@ # Load dependencies. -load "${BATS_TEST_DIRNAME}/../node_modules/bats-support/load.bash" +bats_load_library 'bats-support' # Load library. load '../load' |