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:
parent
012cfcc44a
commit
27a6182347
2 changed files with 19 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
''
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue