Merge pull request #2019 from gaelicWizard/lib/colors

lib/colors: split out metaprogramming
This commit is contained in:
Noah Gorny
2022-01-30 00:10:14 +02:00
committed by GitHub
10 changed files with 294 additions and 280 deletions

2
test/lib/helpers.bats Normal file → Executable file
View File

@@ -3,7 +3,7 @@
load ../test_helper
load ../test_helper_libs
load ../../plugins/available/base.plugin
load ../../themes/colors.theme
load ../../lib/colors
function local_setup {
setup_test_fixture

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bats
load ../test_helper
load ../../themes/colors.theme
load ../../lib/colors
load ../../lib/log
load ../../lib/helpers

View File

@@ -19,7 +19,7 @@ load ../../plugins/available/base.plugin
run myip
assert_success
declare -r mask_ip=$(echo $output | tr -s '[0-9]' '?')
[[ $mask_ip == 'Your public IP is: ?.?.?.?' ]]
[[ $mask_ip == 'Your public IP is:'*'?.?.?.?'* ]]
}
@test 'plugins base: pickfrom()' {

View File

@@ -5,3 +5,4 @@ load "${BASH_IT}/lib/utilities.bash"
load "${BASH_IT}/lib/helpers.bash"
load "${BASH_IT}/lib/search.bash"
load "${BASH_IT}/lib/preexec.bash"
load "${BASH_IT}/lib/colors.bash"

View File

@@ -2,7 +2,6 @@
load ../test_helper
load ../test_helper_libs
load ../../themes/colors.theme
load ../../themes/base.theme
@test 'themes base: battery_percentage should not exist' {