Test that unread.process_loaded_messages ignores read messages.

(imported from commit 262f20933551e786022de564f46c75f901d8123f)
This commit is contained in:
Steve Howell 2013-08-22 21:23:08 -04:00
parent 582eef8305
commit ffa9cfd492
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}());