Skip to content

Commit 1cd4fa1

Browse files
committed
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.
1 parent ffe84ea commit 1cd4fa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_helper.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Load dependencies.
2-
load "${BATS_TEST_DIRNAME}/../node_modules/bats-support/load.bash"
2+
bats_load_library 'bats-support'
33

44
# Load library.
55
load '../load'

0 commit comments

Comments
 (0)