Fetch PNI group credentials

This commit is contained in:
Fedor Indutny 2022-07-08 13:46:25 -07:00 committed by GitHub
parent b9ba732724
commit a450e13a99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
61 changed files with 1911 additions and 875 deletions

View file

@ -11,8 +11,8 @@ import { updateRemoteConfig } from '../helpers/RemoteConfigStub';
const HARD_LIMIT_KEY = 'global.groupsv2.groupSizeHardLimit';
describe('group add banned member', () => {
const uuid = UUID.generate().toString();
const ourUuid = UUID.generate().toString();
const uuid = UUID.generate();
const ourUuid = UUID.generate();
const existing = Array.from({ length: 10 }, (_, index) => ({
uuid: UUID.generate().toString(),
timestamp: index,
@ -49,7 +49,7 @@ describe('group add banned member', () => {
clientZkGroupCipher,
actions.addMembersBanned?.[0]?.added?.userId ?? new Uint8Array(0)
),
uuid
uuid.toString()
);
assert.strictEqual(actions.deleteMembersBanned, null);
});
@ -77,7 +77,7 @@ describe('group add banned member', () => {
clientZkGroupCipher,
actions.addMembersBanned?.[0]?.added?.userId ?? new Uint8Array(0)
),
uuid
uuid.toString()
);
assert.deepStrictEqual(
deleted,
@ -108,7 +108,7 @@ describe('group add banned member', () => {
uuid,
ourUuid,
group: {
bannedMembersV2: [{ uuid, timestamp: 1 }],
bannedMembersV2: [{ uuid: uuid.toString(), timestamp: 1 }],
},
});