tests/diff-so-fancy: add
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
7a10f175db
commit
16cd8abad6
4 changed files with 77 additions and 0 deletions
14
tests/modules/programs/diff-so-fancy/diff-so-fancy-basic.nix
Normal file
14
tests/modules/programs/diff-so-fancy/diff-so-fancy-basic.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
programs.diff-so-fancy = {
|
||||
enable = true;
|
||||
markEmptyLines = false;
|
||||
changeHunkIndicators = true;
|
||||
};
|
||||
programs.git.enable = true;
|
||||
|
||||
nmt.script = ''
|
||||
# Git config should NOT contain diff-so-fancy configuration since enableGitIntegration is false by default
|
||||
assertFileNotRegex home-files/.config/git/config 'pager = .*/diff-so-fancy'
|
||||
assertFileNotRegex home-files/.config/git/config 'diffFilter = .*/diff-so-fancy'
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue