From d3bdcd865e461b1ec45e4e348f75afd73f2b44f7 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 14 Feb 2017 13:39:22 +0000 Subject: [PATCH] Fix failing test --- spec/notification.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/notification.js b/spec/notification.js index f8de82abf..b20bab434 100644 --- a/spec/notification.js +++ b/spec/notification.js @@ -64,8 +64,10 @@ } })); - it("is shown when a user changes their chat state", mock.initConverse(function (_converse) { + it("is shown when a user changes their chat state (if show_chatstate_notifications is true)", mock.initConverse(function (_converse) { // TODO: not yet testing show_desktop_notifications setting + _converse.show_chatstate_notifications = true; + test_utils.createContacts(_converse, 'current'); spyOn(_converse, 'areDesktopNotificationsEnabled').andReturn(true); spyOn(_converse, 'showChatStateNotification');