mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 15:14:26 +00:00
rofi: add test to verify assertion
This commit is contained in:
parent
698d0f0a44
commit
1923ac3358
4 changed files with 38 additions and 0 deletions
|
@ -36,6 +36,7 @@ import nmt {
|
|||
// import ./modules/misc/pam
|
||||
// import ./modules/misc/xsession
|
||||
// import ./modules/programs/firefox
|
||||
// import ./modules/programs/rofi
|
||||
// import ./modules/systemd
|
||||
)
|
||||
// import ./modules/home-environment
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
["Cannot use the rofi options 'theme' and 'colors' simultaneously.\n"]
|
|
@ -0,0 +1,33 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
config = {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
theme = "foo";
|
||||
colors = {
|
||||
window = {
|
||||
background = "background";
|
||||
border = "border";
|
||||
separator = "separator";
|
||||
};
|
||||
rows = {
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file.result.text =
|
||||
builtins.toJSON
|
||||
(map (a: a.message)
|
||||
(filter (a: !a.assertion)
|
||||
config.assertions));
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
home-files/result \
|
||||
${./assert-on-both-theme-and-colors-expected.json}
|
||||
'';
|
||||
};
|
||||
}
|
3
tests/modules/programs/rofi/default.nix
Normal file
3
tests/modules/programs/rofi/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
rofi-assert-on-both-theme-and-colors = import ./assert-on-both-theme-and-colors.nix;
|
||||
}
|
Loading…
Reference in a new issue