diff --git a/lib/permissions/minimally-encoded-thread-permissions.test.js b/lib/permissions/minimally-encoded-thread-permissions.test.js --- a/lib/permissions/minimally-encoded-thread-permissions.test.js +++ b/lib/permissions/minimally-encoded-thread-permissions.test.js @@ -20,6 +20,7 @@ threadPermissionsFromBitmaskHex, threadRolePermissionsBlobToBitmaskArray, } from './minimally-encoded-thread-permissions.js'; +import { specialRoles } from './special-roles.js'; import { minimallyEncodeRawThreadInfo, decodeMinimallyEncodedRawThreadInfo, @@ -312,6 +313,7 @@ name: 'roleName', permissions: ['abc', 'def'], isDefault: true, + specialRole: specialRoles.DEFAULT_ROLE, }), ).toBe(true); }); @@ -323,6 +325,7 @@ name: 'roleName', permissions: ['abc', 'def'], isDefault: true, + specialRole: specialRoles.DEFAULT_ROLE, }), ).toBe(false); @@ -332,6 +335,7 @@ name: 'roleName', permissions: ['hello a02 test', 'def'], isDefault: true, + specialRole: specialRoles.DEFAULT_ROLE, }), ).toBe(false); @@ -341,6 +345,7 @@ name: 'roleName', permissions: [123, 456], isDefault: true, + specialRole: specialRoles.DEFAULT_ROLE, }), ).toBe(false); @@ -350,6 +355,7 @@ name: 'roleName', permissions: ['ZZZ', 'YYY'], isDefault: true, + specialRole: specialRoles.DEFAULT_ROLE, }), ).toBe(false); @@ -359,6 +365,7 @@ name: 'roleName', permissions: ['AAAAA', 'YYY'], isDefault: true, + specialRole: specialRoles.DEFAULT_ROLE, }), ).toBe(false); });