aboutsummaryrefslogtreecommitdiffstats
path: root/tests/describe.bats
diff options
context:
space:
mode:
authorMoritz Meißelbach <m.meisselbach@inpsyde.com>2019-11-29 21:28:24 +0100
committerMoritz Meißelbach <m.meisselbach@inpsyde.com>2019-11-29 21:28:24 +0100
commit3835562c5325c279809bb41c34c6afca6288a1cb (patch)
tree7bbf1910d43d9a512146bc5a4cb11842e66bf0d3 /tests/describe.bats
parent22182d980a2ebde89fe2970e11c39fbf8e4d6628 (diff)
downloadsway-launcher-desktop-3835562c5325c279809bb41c34c6afca6288a1cb.tar.gz
sway-launcher-desktop-3835562c5325c279809bb41c34c6afca6288a1cb.zip
[WIP] Read custom providers from a ~/.config/sway-launcher-desktop/providers.conf file.
Diffstat (limited to 'tests/describe.bats')
-rw-r--r--tests/describe.bats6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/describe.bats b/tests/describe.bats
index d02ee96..1541974 100644
--- a/tests/describe.bats
+++ b/tests/describe.bats
@@ -1,13 +1,13 @@
@test "Name and description of firefox desktop file are properly extracted" {
- run ../sway-launcher-desktop.sh describe data/desktop-files/0/applications/firefox.desktop desktop
+ run env XDG_CONFIG_HOME=./data/config ../sway-launcher-desktop.sh describe desktop ./data/desktop-files/0/applications/firefox.desktop
[ "$status" -eq 0 ]
[[ ${lines[0]} =~ "Firefox" ]]
[[ ${lines[1]} =~ "Browse the World Wide Web" ]]
}
@test "Name and description of ls command should be given" {
- run ../sway-launcher-desktop.sh describe ls command
+ run env XDG_CONFIG_HOME=./data/config ../sway-launcher-desktop.sh describe command ls
[ "$status" -eq 0 ]
[[ ${lines[0]} =~ "ls" ]]
[[ ${lines[1]} =~ "list directory contents" ]]
-} \ No newline at end of file
+}