Browse Source

Fix failing test

JC Brand 6 năm trước cách đây
mục cha
commit
c55e25fa5f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      spec/notification.js

+ 1 - 1
spec/notification.js

@@ -20,7 +20,7 @@
 
                         // TODO: not yet testing show_desktop_notifications setting
                         test_utils.createContacts(_converse, 'current');
-                        spyOn(_converse, 'showMessageNotification');
+                        spyOn(_converse, 'showMessageNotification').and.callThrough();
                         spyOn(_converse, 'areDesktopNotificationsEnabled').and.returnValue(true);
                         spyOn(_converse, 'isMessageToHiddenChat').and.returnValue(true);