aboutsummaryrefslogtreecommitdiffstats
path: root/tests/generate-command.bats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/generate-command.bats')
-rw-r--r--tests/generate-command.bats9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/generate-command.bats b/tests/generate-command.bats
index dfe2487..1dccc13 100644
--- a/tests/generate-command.bats
+++ b/tests/generate-command.bats
@@ -1,3 +1,7 @@
+setup() {
+ export TERMINAL_COMMAND='urxvt -e'
+}
+
@test "Exec command is properly extracted from Firefox desktop file" {
run ../sway-launcher-desktop.sh generate-command data/desktop-files/0/applications/firefox.desktop
[ "$status" -eq 0 ]
@@ -6,8 +10,11 @@
@test "Exec command is properly generated from htop desktop file" {
run ../sway-launcher-desktop.sh generate-command data/desktop-files/0/applications/htop.desktop
+ expected='urxvt -e htop'
+ echo "EXPECTED: $expected"
+ echo "ACTUAL: $output"
[ "$status" -eq 0 ]
- [[ "$output" == 'urxvt -e htop' ]]
+ [[ "$output" == $expected ]]
}
@test "Exec command is properly generated from minecraft-launcher desktop file" {