Skip to content

Commit

Permalink
test/test_helper.bash: Use bats_load_library to load bats-support
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gioele committed Oct 11, 2022
1 parent ffe84ea commit 1cd4fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_helper.bash
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 1cd4fa1

Please sign in to comment.