diff --git a/tests/modules/xresources/empty.nix b/tests/modules/xresources/empty.nix index 9dd80176f..e02e0fbfe 100644 --- a/tests/modules/xresources/empty.nix +++ b/tests/modules/xresources/empty.nix @@ -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 + ''; } diff --git a/tests/modules/xresources/xresources.nix b/tests/modules/xresources/xresources.nix index f73e326f3..36d092e0d 100644 --- a/tests/modules/xresources/xresources.nix +++ b/tests/modules/xresources/xresources.nix @@ -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} + ''; }