1
0
Fork 0
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:
Thiago Kenji Okada 2021-10-09 00:06:02 -03:00 committed by Robert Helgesson
parent b78b584368
commit b22004bf1f
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 18 additions and 0 deletions

View file

@ -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.
'')
];
}

View file

@ -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;
} }