git: add tests for difftastic
This commit is contained in:
parent
e46b52ab56
commit
d328666dba
3 changed files with 31 additions and 0 deletions
18
tests/modules/programs/git/git-difftastic.nix
Normal file
18
tests/modules/programs/git/git-difftastic.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
signing.signer = "path-to-gpg";
|
||||
difftastic = {
|
||||
enable = true;
|
||||
enableAsDifftool = true;
|
||||
background = "dark";
|
||||
color = "always";
|
||||
display = "inline";
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/git/config
|
||||
assertFileContent home-files/.config/git/config ${./git-difftastic-expected.conf}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue