From 45bf7194a29a91c768dffc065c7819a61c5762c0 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Thu, 23 Sep 2021 23:21:43 -0700 Subject: [PATCH] plugin/base: import libs for tests --- test/lib/helpers.bats | 2 +- test/lib/log.bats | 3 ++- test/plugins/base.plugin.bats | 2 ++ test/plugins/battery.plugin.bats | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) mode change 100644 => 100755 test/plugins/battery.plugin.bats diff --git a/test/lib/helpers.bats b/test/lib/helpers.bats index e60d5542..7f6664e0 100644 --- a/test/lib/helpers.bats +++ b/test/lib/helpers.bats @@ -5,11 +5,11 @@ load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh" load ../../lib/log load ../../lib/utilities load ../../lib/search -load ../../plugins/available/base.plugin cite _about _param _example _group _author _version load ../../lib/helpers +load ../../plugins/available/base.plugin function local_setup { setup_test_fixture diff --git a/test/lib/log.bats b/test/lib/log.bats index f4a04f0e..329386bd 100644 --- a/test/lib/log.bats +++ b/test/lib/log.bats @@ -3,10 +3,11 @@ load ../test_helper load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh" load ../../lib/appearance -load ../../plugins/available/base.plugin cite _about _param _example _group _author _version load ../../lib/log +load ../../lib/helpers +load ../../plugins/available/base.plugin @test "lib log: basic debug logging with BASH_IT_LOG_LEVEL_ALL" { BASH_IT_LOG_LEVEL=$BASH_IT_LOG_LEVEL_ALL diff --git a/test/plugins/base.plugin.bats b/test/plugins/base.plugin.bats index 1def481e..6f1099cc 100755 --- a/test/plugins/base.plugin.bats +++ b/test/plugins/base.plugin.bats @@ -2,6 +2,8 @@ load ../test_helper load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh" +load ../../lib/log +load ../../lib/helpers load ../../plugins/available/base.plugin @test 'plugins base: ips()' { diff --git a/test/plugins/battery.plugin.bats b/test/plugins/battery.plugin.bats old mode 100644 new mode 100755 index 9af49697..fda52b02 --- a/test/plugins/battery.plugin.bats +++ b/test/plugins/battery.plugin.bats @@ -2,6 +2,8 @@ load ../test_helper load "${BASH_IT}/vendor/github.com/erichs/composure/composure.sh" +load "${BASH_IT}/lib/log.bash" +load "${BASH_IT}/lib/helpers.bash" cite _about _param _example _group _author _version