mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
xresources: simplify tests
This commit is contained in:
parent
0b42cc1b1c
commit
63eb786e04
2 changed files with 18 additions and 26 deletions
|
@ -1,13 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
xresources.properties = { };
|
||||
xresources.properties = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.Xresources
|
||||
'';
|
||||
};
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.Xresources
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -1,22 +1,18 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
xresources = {
|
||||
properties = {
|
||||
"Test*string" = "test-string";
|
||||
"Test*boolean1" = true;
|
||||
"Test*boolean2" = false;
|
||||
"Test*int" = 10;
|
||||
"Test*list" = [ "list-str" true false 10 ];
|
||||
};
|
||||
xresources = {
|
||||
properties = {
|
||||
"Test*string" = "test-string";
|
||||
"Test*boolean1" = true;
|
||||
"Test*boolean2" = false;
|
||||
"Test*int" = 10;
|
||||
"Test*list" = [ "list-str" true false 10 ];
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.Xresources
|
||||
assertFileContent home-files/.Xresources ${./xresources-expected.conf}
|
||||
'';
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.Xresources
|
||||
assertFileContent home-files/.Xresources ${./xresources-expected.conf}
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue