mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 04:09:47 +01:00
firefox: add test for duplicate profile id assertion
This commit is contained in:
parent
132e212203
commit
0e16a9b843
2 changed files with 24 additions and 0 deletions
|
@ -2,4 +2,5 @@
|
|||
firefox-profile-settings = ./profile-settings.nix;
|
||||
firefox-state-version-19_09 = ./state-version-19_09.nix;
|
||||
firefox-deprecated-native-messenger = ./deprecated-native-messenger.nix;
|
||||
firefox-duplicate-profile-ids = ./duplicate-profile-ids.nix;
|
||||
}
|
||||
|
|
23
tests/modules/programs/firefox/duplicate-profile-ids.nix
Normal file
23
tests/modules/programs/firefox/duplicate-profile-ids.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./setup-firefox-mock-overlay.nix ];
|
||||
|
||||
config = lib.mkIf config.test.enableBig {
|
||||
test.asserts.assertions.expected = [''
|
||||
Must not have Firefox profiles with duplicate IDs but
|
||||
- ID 1 is used by first, second''];
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
|
||||
profiles = {
|
||||
first = {
|
||||
isDefault = true;
|
||||
id = 1;
|
||||
};
|
||||
second = { id = 1; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue