mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
tests/fish: add non-handler function defined as attrset
This commit is contained in:
committed by
Austin Horstman
parent
755b993165
commit
b7e6cad335
@@ -5,6 +5,10 @@
|
||||
|
||||
functions = {
|
||||
normal-function = "";
|
||||
function-with-args = {
|
||||
argumentNames = [ "test" ];
|
||||
body = "";
|
||||
};
|
||||
event-handler = {
|
||||
body = "";
|
||||
onEvent = "test";
|
||||
@@ -36,6 +40,7 @@
|
||||
assertFileContains home-files/.config/fish/config.fish "source /home/hm-user/.config/fish/functions/signal-handler.fish"
|
||||
assertFileContains home-files/.config/fish/config.fish "source /home/hm-user/.config/fish/functions/process-handler.fish"
|
||||
assertFileNotRegex home-files/.config/fish/config.fish "source /home/hm-user/.config/fish/functions/normal-function.fish"
|
||||
assertFileNotRegex home-files/.config/fish/config.fish "source /home/hm-user/.config/fish/functions/function-with-args.fish"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user