Test that headlines box doesn't show an avatar
This commit is contained in:
parent
2b6db9d50b
commit
e34d62287b
@ -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();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user