소스 검색

Fix failing test

JC Brand 8 년 전
부모
커밋
d3bdcd865e
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      spec/notification.js

+ 3 - 1
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');