mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
tests/atuin: add theme test
This commit is contained in:
parent
88e6187364
commit
e72178b84e
2 changed files with 27 additions and 0 deletions
|
|
@ -6,5 +6,6 @@
|
|||
atuin-no-shell = ./no-shell.nix;
|
||||
atuin-zsh = ./zsh.nix;
|
||||
atuin-set-flags = ./set-flags.nix;
|
||||
atuin-theme = ./theme.nix;
|
||||
atuin-nushell = ./nushell.nix;
|
||||
}
|
||||
|
|
|
|||
26
tests/modules/programs/atuin/theme.nix
Normal file
26
tests/modules/programs/atuin/theme.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
programs.atuin = {
|
||||
enable = true;
|
||||
|
||||
themes.my-theme = {
|
||||
theme.name = "My Theme";
|
||||
colors = {
|
||||
Base = "#000000";
|
||||
Title = "#FFFFFF";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
home-files/.config/atuin/themes/my-theme.toml \
|
||||
${builtins.toFile "example-theme-expected.toml" ''
|
||||
[colors]
|
||||
Base = "#000000"
|
||||
Title = "#FFFFFF"
|
||||
|
||||
[theme]
|
||||
name = "My Theme"
|
||||
''}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue