1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-08 10:01:05 +01:00
home-manager/tests/modules/programs/diff-highlight/diff-highlight-git-package-null-assertion.nix
Austin Horstman 27a6182347 tests/diff-highlight: add null assertion test
Verify eval when setting git package to null.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-12-05 23:18:20 -06:00

18 lines
368 B
Nix

{
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.
''
];
}