home-manager/tests/modules/programs/gh/config-file.nix

22 lines
469 B
Nix
Raw Normal View History

2020-10-15 20:25:47 +00:00
{ config, lib, pkgs, ... }:
{
config = {
programs.gh = {
enable = true;
aliases = { co = "pr checkout"; };
editor = "vim";
};
test.stubs.gh = { };
2020-10-15 20:25:47 +00:00
nmt.script = ''
assertFileExists home-files/.config/gh/config.yml
assertFileContent home-files/.config/gh/config.yml ${
builtins.toFile "config-file.yml" ''
{"aliases":{"co":"pr checkout"},"editor":"vim","git_protocol":"https"}''
2020-10-15 20:25:47 +00:00
}
'';
};
}