mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
tests/firefox: change test case to verify we handle missing addonId
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
5200f3903f
commit
bcccb01d0a
1 changed files with 3 additions and 4 deletions
|
|
@ -8,7 +8,6 @@ let
|
|||
uBlockStubPkg = config.lib.test.mkStubPackage {
|
||||
name = "ublock-origin-dummy";
|
||||
extraAttrs = {
|
||||
addonId = "uBlock0@raymondhill.net";
|
||||
meta.mozPermissions = [
|
||||
"privacy"
|
||||
"storage"
|
||||
|
|
@ -69,7 +68,7 @@ in
|
|||
];
|
||||
exactPermissions = true;
|
||||
settings = {
|
||||
${uBlockStubPkg.addonId} = {
|
||||
${uBlockStubPkg.name} = {
|
||||
permissions = [
|
||||
"privacy"
|
||||
"storage"
|
||||
|
|
@ -104,10 +103,10 @@ in
|
|||
// {
|
||||
test.asserts.assertions.expected = [
|
||||
''
|
||||
Extension ${uBlockStubPkg.addonId} requests permissions that weren't
|
||||
Extension ${uBlockStubPkg.name} requests permissions that weren't
|
||||
authorized: ["tabs"].
|
||||
Consider adding the missing permissions to
|
||||
'${lib.showOption modulePath}.profiles.extensions.extensions."${uBlockStubPkg.addonId}".permissions'.
|
||||
'${lib.showOption modulePath}.profiles.extensions.extensions.${uBlockStubPkg.name}.permissions'.
|
||||
''
|
||||
''
|
||||
The following permissions were authorized, but extension
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue