mirror of https://github.com/zulip/zulip.git
Test that unread.process_loaded_messages ignores read messages.
(imported from commit 262f20933551e786022de564f46c75f901d8123f)
This commit is contained in:
parent
582eef8305
commit
ffa9cfd492
|
@ -205,7 +205,11 @@ var zero_counts = {
|
|||
reply_to: email,
|
||||
type: 'private'
|
||||
};
|
||||
unread.process_loaded_messages([message]);
|
||||
|
||||
var read_message = {
|
||||
flags: ['read']
|
||||
};
|
||||
unread.process_loaded_messages([message, read_message]);
|
||||
assert.equal(unread.num_unread_for_person(email), 1);
|
||||
}());
|
||||
|
||||
|
|
Loading…
Reference in New Issue