1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-07 17:41:03 +01:00

tests/diff-highlight: add null assertion test

Verify eval when setting git package to null.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-12-05 23:05:47 -06:00
parent 012cfcc44a
commit 27a6182347
2 changed files with 19 additions and 0 deletions

View file

@ -2,4 +2,5 @@
diff-highlight-basic = ./diff-highlight-basic.nix;
diff-highlight-with-git-integration = ./diff-highlight-with-git-integration.nix;
diff-highlight-migration = ./diff-highlight-migration.nix;
diff-highlight-git-package-null-assertion = ./diff-highlight-git-package-null-assertion.nix;
}

View file

@ -0,0 +1,18 @@
{
programs.diff-highlight = {
enable = true;
enableGitIntegration = true;
};
programs.git = {
enable = true;
package = null;
};
test.asserts.assertions.expected = [
''
programs.diff-highlight.enableGitIntegration requires programs.git.package to be set.
Please set programs.git.package to a valid git package.
''
];
}