Upgrade mock-server to v13.2.2

This commit is contained in:
Alex Bakon 2025-08-13 14:27:29 -04:00 committed by GitHub
commit 34b22fc6ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 17 deletions

View file

@ -119,9 +119,9 @@ describe('story/no-sender-key', function (this: Mocha.Suite) {
contacts.map(async contact => {
const { storyMessage } = await contact.waitForStory();
assert.isTrue(
phone.profileKey
.serialize()
.equals(storyMessage.profileKey ?? new Uint8Array(0))
Buffer.from(phone.profileKey.serialize()).equals(
storyMessage.profileKey ?? new Uint8Array(0)
)
);
assert.strictEqual(storyMessage.textAttachment?.text, '123');
})

View file

@ -108,9 +108,9 @@ describe('storage service', function (this: Mocha.Suite) {
'profile key message has valid source'
);
assert.isTrue(
phone.profileKey
.serialize()
.equals(dataMessage.profileKey ?? new Uint8Array(0)),
Buffer.from(phone.profileKey.serialize()).equals(
dataMessage.profileKey ?? new Uint8Array(0)
),
'profile key message has correct profile key'
);
}