Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3515904
D10111.id36958.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10111.id36958.diff
View Options
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,
@@ -346,6 +347,7 @@
name: 'roleName',
permissions: ['abc', 'def'],
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
}),
).toBe(true);
});
@@ -357,6 +359,7 @@
name: 'roleName',
permissions: ['abc', 'def'],
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
}),
).toBe(false);
@@ -366,6 +369,7 @@
name: 'roleName',
permissions: ['hello a02 test', 'def'],
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
}),
).toBe(false);
@@ -375,6 +379,7 @@
name: 'roleName',
permissions: [123, 456],
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
}),
).toBe(false);
@@ -384,6 +389,7 @@
name: 'roleName',
permissions: ['ZZZ', 'YYY'],
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
}),
).toBe(false);
@@ -393,6 +399,7 @@
name: 'roleName',
permissions: ['AAAAA', 'YYY'],
isDefault: true,
+ specialRole: specialRoles.DEFAULT_ROLE,
}),
).toBe(false);
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 10:58 AM (3 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2694517
Default Alt Text
D10111.id36958.diff (1 KB)
Attached To
Mode
D10111: [lib] Update minimally-encoded-thread-permissions.test.js to include specialRole field
Attached
Detach File
Event Timeline
Log In to Comment