aboutsummaryrefslogtreecommitdiff
path: root/tests/modules/programs/git
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2020-02-02 00:39:17 +0100
committerRobert Helgesson <robert@rycee.net>2020-02-02 01:07:28 +0100
commit45abf3d38a2b51c00c347cab6950f3734e023bba (patch)
tree414fde5d14d1d075fa65e59175660fd1fb680c43 /tests/modules/programs/git
parent9799d3de2d270a9c40fcf81d600bfd71088e144d (diff)
Apply `nixfmt` on many files
Diffstat (limited to 'tests/modules/programs/git')
-rw-r--r--tests/modules/programs/git/git-with-email.nix4
-rw-r--r--tests/modules/programs/git/git.nix22
2 files changed, 15 insertions, 11 deletions
diff --git a/tests/modules/programs/git/git-with-email.nix b/tests/modules/programs/git/git-with-email.nix
index 3509219813d..ca577eef4d3 100644
--- a/tests/modules/programs/git/git-with-email.nix
+++ b/tests/modules/programs/git/git-with-email.nix
@@ -25,7 +25,9 @@ with lib;
}
assertFileExists home-files/.config/git/config
- assertFileContent home-files/.config/git/config ${./git-with-email-expected.conf}
+ assertFileContent home-files/.config/git/config ${
+ ./git-with-email-expected.conf
+ }
assertGitConfig "sendemail.hm@example.com.from" "hm@example.com"
assertGitConfig "sendemail.hm-account.from" "hm@example.org"
diff --git a/tests/modules/programs/git/git.nix b/tests/modules/programs/git/git.nix
index 3a84bf77a73..7c0bf52de55 100644
--- a/tests/modules/programs/git/git.nix
+++ b/tests/modules/programs/git/git.nix
@@ -11,15 +11,15 @@ let
};
};
- substituteExpected = path: pkgs.substituteAll {
- src = path;
+ substituteExpected = path:
+ pkgs.substituteAll {
+ src = path;
- git_include_path = pkgs.writeText "contents" (generators.toINI {} gitInclude);
- };
-
-in
+ git_include_path =
+ pkgs.writeText "contents" (generators.toINI { } gitInclude);
+ };
-{
+in {
config = {
programs.git = mkMerge [
{
@@ -32,7 +32,7 @@ in
extraConfig = {
extra = {
name = "value";
- multiple = [1];
+ multiple = [ 1 ];
};
};
ignores = [ "*~" "*.swp" ];
@@ -62,14 +62,16 @@ in
extraConfig."extra \"backcompat.with.dots\"".previously = "worked";
extraConfig.extra.boolean = true;
extraConfig.extra.integer = 38;
- extraConfig.extra.multiple = [2];
+ extraConfig.extra.multiple = [ 2 ];
extraConfig.extra.subsection.value = "test";
}
];
nmt.script = ''
assertFileExists home-files/.config/git/config
- assertFileContent home-files/.config/git/config ${substituteExpected ./git-expected.conf}
+ assertFileContent home-files/.config/git/config ${
+ substituteExpected ./git-expected.conf
+ }
'';
};
}