mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
rofi: add test case for config with deprecated options
This commit is contained in:
parent
b78b584368
commit
b22004bf1f
2 changed files with 18 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.rofi = {
|
||||||
|
enable = true;
|
||||||
|
colors = { };
|
||||||
|
};
|
||||||
|
|
||||||
|
test.stubs.rofi = { };
|
||||||
|
test.asserts.assertions.expected = [
|
||||||
|
(let offendingFile = toString ./config-with-deprecated-options.nix;
|
||||||
|
in ''
|
||||||
|
The option definition `programs.rofi.colors' in `${offendingFile}' no longer has any effect; please remove it.
|
||||||
|
Please use a Rofi theme instead.
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
rofi-valid-config = ./valid-config.nix;
|
rofi-valid-config = ./valid-config.nix;
|
||||||
rofi-custom-theme = ./custom-theme.nix;
|
rofi-custom-theme = ./custom-theme.nix;
|
||||||
|
rofi-config-with-deprecated-options = ./config-with-deprecated-options.nix;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue