From 1cd4fa1d568473d076f3224f62f33291fa3daefb Mon Sep 17 00:00:00 2001 From: Gioele Barabucci Date: Tue, 11 Oct 2022 19:44:17 +0200 Subject: 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. --- test/test_helper.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- cgit v1.2.3