tests/diff-highlight: add
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
7d03d5fb73
commit
486487b5e9
4 changed files with 74 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
programs.diff-highlight = {
|
||||
enable = true;
|
||||
pagerOpts = [
|
||||
"--tabs=4"
|
||||
"-RFX"
|
||||
];
|
||||
};
|
||||
programs.git.enable = true;
|
||||
|
||||
nmt.script = ''
|
||||
# Git config should NOT contain diff-highlight configuration since enableGitIntegration is false by default
|
||||
assertFileNotRegex home-files/.config/git/config 'pager = .*/diff-highlight'
|
||||
assertFileNotRegex home-files/.config/git/config 'diffFilter = .*/diff-highlight'
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue