1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-01-07 09:39:49 +01:00

espanso: fix test

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
phanirithvij 2024-10-20 10:43:59 +05:30
parent 1b9dbef874
commit 02057ba30b

View file

@ -42,8 +42,16 @@
nmt.script = ''
serviceFile=home-files/.config/systemd/user/espanso.service
expectedServiceFile=${./basic-configuration.service}
assertFileExists "$serviceFile"
assertFileContent "$serviceFile" ${./basic-configuration.service}
assertFileRegex "$serviceFile" 'ExecStart=.*/bin/espanso launcher'
if [[ $(uname) == "Linux" ]]; then
grep -v "/bin/espanso launcher" "$(_abs $serviceFile)" > espanso-service.actual
grep -v "/bin/espanso launcher" "$expectedServiceFile" > espanso-service.expected
assertFileContent "$(realpath espanso-service.actual)" espanso-service.expected
else
assertFileContent "$serviceFile" "$expectedServiceFile"
fi
configFile=home-files/.config/espanso/config/default.yml
assertFileExists "$configFile"