diff options
| author | Moritz Meißelbach <arbelzapf@gmail.com> | 2019-10-23 23:04:00 +0200 |
|---|---|---|
| committer | Moritz Meißelbach <arbelzapf@gmail.com> | 2019-10-23 23:04:00 +0200 |
| commit | 2cf150eb37554d335cec181d55c4ce5caf5162e5 (patch) | |
| tree | 0cd95ebbded8706719c6dd8a2ff9d9fb0b98ffda | |
| parent | 49c1a64d1cc00f3d160e74ea49898e9107eb6486 (diff) | |
| download | sway-launcher-desktop-2cf150eb37554d335cec181d55c4ce5caf5162e5.tar.gz sway-launcher-desktop-2cf150eb37554d335cec181d55c4ce5caf5162e5.zip | |
Fix failing tests
| -rwxr-xr-x | sway-launcher-desktop.sh | 2 | ||||
| -rw-r--r-- | tests/describe.bats | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh index a631a47..5d06a4b 100755 --- a/sway-launcher-desktop.sh +++ b/sway-launcher-desktop.sh @@ -23,7 +23,7 @@ fi # Defaulting terminal to termite, but feel free to either change # this or override with an environment variable in your sway config # It would be good to move this to a config file eventually -set ${TERMINAL_COMMAND:="termite -e"} +set "${TERMINAL_COMMAND:="termite -e"}" HIST_FILE="${XDG_CACHE_HOME:-$HOME/.cache}/${0##*/}-history.txt" diff --git a/tests/describe.bats b/tests/describe.bats index 3285163..7d2f866 100644 --- a/tests/describe.bats +++ b/tests/describe.bats @@ -5,9 +5,9 @@ [[ ${lines[1]} =~ "Browse the World Wide Web" ]] } -@test "Name and description of awk command should be given" { - run ../sway-launcher-desktop.sh describe awk command +@test "Name and description of ls command should be given" { + run ../sway-launcher-desktop.sh describe ls command [ "$status" -eq 0 ] - [[ ${lines[0]} =~ "awk" ]] - [[ ${lines[1]} =~ "pattern scanning and processing language" ]] + [[ ${lines[0]} =~ "ls" ]] + [[ ${lines[1]} =~ "list directory contents" ]] }
\ No newline at end of file |
