Skip to content

Commit 696517b

Browse files
committed
test: Use 'setup_file'
1 parent 4eb0d98 commit 696517b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pkg/lib/public/basalt-package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ basalt.package-load() {
1818
fi
1919
shopt -s nullglob
2020

21-
# TODO: Use array expand glob so no need to shopt -s nullglob at end to make this cleaner
21+
# This can be made cleaner with glob expansion in arrays, but the code is fine as it is
2222
local __basalt_site= __basalt_repository_owner= __basalt_package=
2323
if [ -d "$BASALT_PACKAGE_DIR"/.basalt/packages ]; then
2424
for __basalt_site in "$BASALT_PACKAGE_DIR"/.basalt/packages/*/; do

tests/basalt-add.bats

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
load './util/init.sh'
44

5-
# TODO: setup file
6-
setup() {
7-
ensure.cd "$BATS_TEST_TMPDIR"
8-
5+
setup_file() {
96
# this affects lines=($output) # TODO Bats 1.5 remove
107
shopt -u nullglob
118
test_util.stub_command 'do-install'

0 commit comments

Comments
 (0)