adapt tests

This commit is contained in:
B. Petersen
2023-11-01 20:17:30 +01:00
parent 67b35b1baa
commit f7c90d626e
2 changed files with 10 additions and 8 deletions

View File

@@ -440,12 +440,6 @@ describe('Offline Tests with unconfigured account', function () {
expect(blobPath.startsWith(blobs)).to.be.true
expect(blobPath.includes('image')).to.be.true
expect(blobPath.endsWith('.jpeg')).to.be.true
context.setChatProfileImage(chatId, null)
expect(context.getChat(chatId).getProfileImage()).to.be.equal(
null,
'image is null'
)
})
it('test setting ephemeral timer', function () {

View File

@@ -4368,8 +4368,16 @@ mod tests {
assert_eq!(a1_chat.grpid, a2_chat.grpid);
assert_eq!(a1_chat.name, "foo");
assert_eq!(a2_chat.name, "foo");
assert_eq!(a1_chat.get_profile_image(&a1).await?, None);
assert_eq!(a2_chat.get_profile_image(&a2).await?, None);
assert!(a1_chat
.get_profile_image(&a1)
.await?
.unwrap()
.ends_with("icon-group.png"));
assert!(a2_chat
.get_profile_image(&a2)
.await?
.unwrap()
.ends_with("icon-group.png"));
assert_eq!(get_chat_contacts(&a1, a1_chat_id).await?.len(), 1);
assert_eq!(get_chat_contacts(&a2, a2_chat_id).await?.len(), 1);