From e34d62287b80708b9a96fc97b1e42a4033de5f05 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 7 Dec 2017 06:35:28 +0100 Subject: [PATCH] Test that headlines box doesn't show an avatar --- spec/headline.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/headline.js b/spec/headline.js index 26dce9462..50ab67167 100644 --- a/spec/headline.js +++ b/spec/headline.js @@ -76,6 +76,10 @@ expect(utils.isHeadlineMessage.called).toBeTruthy(); expect(utils.isHeadlineMessage.returned(true)).toBeTruthy(); 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(); }));