summary refs log tree commit diff
path: root/syweb/webclient/test/unit
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-12 16:01:01 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-12 16:01:01 +0000
commit813125e122d395fb199fc6fd52aca5b252b960c0 (patch)
tree1092447e73a3e8e61015ba012f3d70d4d66aad09 /syweb/webclient/test/unit
parentAdd recentsService unit tests. (diff)
downloadsynapse-813125e122d395fb199fc6fd52aca5b252b960c0.tar.xz
Make earlier versions of jasmine happy by doing explicit object comparisons
Diffstat (limited to 'syweb/webclient/test/unit')
-rw-r--r--syweb/webclient/test/unit/recents-service.spec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/syweb/webclient/test/unit/recents-service.spec.js b/syweb/webclient/test/unit/recents-service.spec.js
index 6aba140ef5..93d351d45f 100644
--- a/syweb/webclient/test/unit/recents-service.spec.js
+++ b/syweb/webclient/test/unit/recents-service.spec.js
@@ -96,8 +96,9 @@ describe('RecentsService', function() {
         recentsService.markAsRead(testEvent.room_id);
         
         unread[testEvent.room_id] = 0;
+        bing[testEvent.room_id] = undefined;
         expect(recentsService.getUnreadMessages()).toEqual(unread);
-        expect(recentsService.getUnreadBingMessages()).toEqual({});
+        expect(recentsService.getUnreadBingMessages()).toEqual(bing);
     }));
     
     it('should not add messages as unread if they are not live.', inject(