2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-04 06:00:45 +00:00
dotbare/tests/set_variable.bats
2020-05-13 13:41:58 +10:00

15 lines
326 B
Bash
Executable File

#!/usr/bin/env bats
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}" ]
}