Test that headlines box doesn't show an avatar

This commit is contained in:
JC Brand 2017-12-07 06:35:28 +01:00
parent 2b6db9d50b
commit e34d62287b

View File

@ -76,6 +76,10 @@
expect(utils.isHeadlineMessage.called).toBeTruthy(); expect(utils.isHeadlineMessage.called).toBeTruthy();
expect(utils.isHeadlineMessage.returned(true)).toBeTruthy(); expect(utils.isHeadlineMessage.returned(true)).toBeTruthy();
utils.isHeadlineMessage.restore(); // unwraps utils.isHeadlineMessage.restore(); // unwraps
// Headlines boxes don't show an avatar
var view = _converse.chatboxviews.get('notify.example.com');
expect(view.model.get('show_avatar')).toBeFalsy();
expect(view.el.querySelector('img.avatar')).toBe(null);
done(); done();
})); }));