From cc1aba228b29bba86f1fdd108bf476642f6e1f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Mei=C3=9Felbach?= Date: Mon, 22 Jun 2020 23:01:17 +0200 Subject: #23 update desktop file contents --- .../desktop-files/0/applications/Sid Meier's Civilization IV.desktop | 2 +- tests/describe.bats | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/data/desktop-files/0/applications/Sid Meier's Civilization IV.desktop b/tests/data/desktop-files/0/applications/Sid Meier's Civilization IV.desktop index aac8eff..fbffa76 100644 --- a/tests/data/desktop-files/0/applications/Sid Meier's Civilization IV.desktop +++ b/tests/data/desktop-files/0/applications/Sid Meier's Civilization IV.desktop @@ -2,7 +2,7 @@ Type=Application Version=1.0 Name=Sid Meier's Civilization IV -Comment=Official Minecraft Launcher +Comment=Play Civ5 Exec=echo foo Terminal=false Categories=Game;Application; \ No newline at end of file diff --git a/tests/describe.bats b/tests/describe.bats index 00aa3dc..1ac58ff 100644 --- a/tests/describe.bats +++ b/tests/describe.bats @@ -8,8 +8,8 @@ @test "Desktop file names containing single quotes can be processed" { run env XDG_CONFIG_HOME=./data/config ../sway-launcher-desktop.sh describe desktop "./data/desktop-files/0/applications/Sid Meier's Civilization IV.desktop" [ "$status" -eq 0 ] - [[ ${lines[0]} =~ "Firefox" ]] - [[ ${lines[1]} =~ "Browse the World Wide Web" ]] + [[ ${lines[0]} =~ "Sid Meier's Civilization IV" ]] + [[ ${lines[1]} =~ "Play Civ5" ]] } @test "Name and description of ls command should be given" { -- cgit v1.2.3