mirror of
https://github.com/kazhala/dotbare
synced 2024-11-02 09:40:27 +00:00
542bc0838c
fix: test .. test: improve wording and variable names in test .. ..
18 lines
370 B
Bash
Executable File
18 lines
370 B
Bash
Executable File
#!/usr/bin/env bats
|
|
|
|
setup() {
|
|
source "${BATS_TEST_DIRNAME}"/../helper/set_variable.sh
|
|
}
|
|
|
|
@test "env check env var" {
|
|
[ "${DOTBARE_DIR}" = "$HOME/.cfg/" ]
|
|
[ "${DOTBARE_TREE}" = "$HOME" ]
|
|
[ "${DOTBARE_BACKUP}" = "$HOME/.local/share/dotbare" ]
|
|
}
|
|
|
|
@test "env check fzf var" {
|
|
[ -n "${DOTBARE_KEY}" ]
|
|
[ -n "${FZF_DEFAULT_OPTS}" ]
|
|
[ -n "${DOTBARE_VERSION}" ]
|
|
}
|