home-manager/tests/modules/programs/jujutsu/example-config.nix

28 lines
512 B
Nix
Raw Normal View History

2023-01-27 21:15:17 +00:00
{ config, ... }:
{
programs.jujutsu = {
enable = true;
package = config.lib.test.mkStubPackage { };
settings = {
user = {
name = "John Doe";
email = "jdoe@example.org";
};
};
};
nmt.script = ''
assertFileExists home-files/.jjconfig.toml
assertFileContent \
home-files/.jjconfig.toml \
${
builtins.toFile "expected.toml" ''
[user]
email = "jdoe@example.org"
name = "John Doe"
''
}
'';
}