fix tests

This commit is contained in:
Audric Ackermann 2020-09-18 09:34:55 +10:00
parent 514eb9ba98
commit d283636fa3
No known key found for this signature in database
GPG key ID: 999F434D76324AD4

View file

@ -31,7 +31,12 @@ describe('ClosedGroupChatMessage', () => {
.to.have.property('group')
.to.have.deep.property(
'id',
new Uint8Array(StringUtils.encode(groupId.key, 'utf8'))
new Uint8Array(
StringUtils.encode(
PubKey.PREFIX_GROUP_TEXTSECURE + groupId.key,
'utf8'
)
)
);
expect(decoded.dataMessage)
.to.have.property('group')