Improve message download performance
This commit is contained in:
parent
957f6f6474
commit
0c09f9620f
32 changed files with 906 additions and 633 deletions
|
@ -27,12 +27,14 @@ describe('SignalProtocolStore', () => {
|
|||
|
||||
describe('getLocalRegistrationId', () => {
|
||||
it('retrieves my registration id', async () => {
|
||||
await store.hydrateCaches();
|
||||
const id = await store.getLocalRegistrationId();
|
||||
assert.strictEqual(id, 1337);
|
||||
});
|
||||
});
|
||||
describe('getIdentityKeyPair', () => {
|
||||
it('retrieves my identity key', async () => {
|
||||
await store.hydrateCaches();
|
||||
const key = await store.getIdentityKeyPair();
|
||||
assertEqualArrayBuffers(key.pubKey, identityKey.pubKey);
|
||||
assertEqualArrayBuffers(key.privKey, identityKey.privKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue