mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
opencode: add empty-settings test
- Add `empty-settings` test to ensure the config file is not generated when no settings are provided
This commit is contained in:
parent
08edcbe9df
commit
1df662dde0
2 changed files with 10 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
opencode-settings = ./settings.nix;
|
||||
opencode-empty-settings = ./empty-settings.nix;
|
||||
opencode-rules = ./rules.nix;
|
||||
opencode-empty-rules = ./empty-rules.nix;
|
||||
}
|
||||
|
|
|
|||
9
tests/modules/programs/opencode/empty-settings.nix
Normal file
9
tests/modules/programs/opencode/empty-settings.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
settings = { };
|
||||
};
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/opencode/config.json
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue