rofi: add test case for config with deprecated options
This commit is contained in:
parent
b78b584368
commit
b22004bf1f
|
@ -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-custom-theme = ./custom-theme.nix;
|
||||
rofi-config-with-deprecated-options = ./config-with-deprecated-options.nix;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue