Page MenuHomePhabricator

D10111.id36958.diff
No OneTemporary

D10111.id36958.diff

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

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)

Event Timeline