mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 13:01:21 +03:00
test: Make the test check for the exact set of recipients
This commit is contained in:
@@ -902,9 +902,9 @@ async fn test_bcc_self() -> Result<()> {
|
||||
for chat_id in [group, single_chat] {
|
||||
let sent = alice.send_text(chat_id, "Heyho!").await;
|
||||
if bcc_self {
|
||||
assert!(sent.recipients.ends_with("alice@example.org"));
|
||||
assert_eq!(sent.recipients, "bob@example.net alice@example.org");
|
||||
} else {
|
||||
assert_eq!(sent.recipients.contains("alice@example.org"), false);
|
||||
assert_eq!(sent.recipients, "bob@example.net");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user