mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 09:10:52 +00:00
Make earlier versions of jasmine happy by doing explicit object comparisons
This commit is contained in:
parent
92ea45070c
commit
813125e122
1 changed files with 2 additions and 1 deletions
|
@ -96,8 +96,9 @@ describe('RecentsService', function() {
|
||||||
recentsService.markAsRead(testEvent.room_id);
|
recentsService.markAsRead(testEvent.room_id);
|
||||||
|
|
||||||
unread[testEvent.room_id] = 0;
|
unread[testEvent.room_id] = 0;
|
||||||
|
bing[testEvent.room_id] = undefined;
|
||||||
expect(recentsService.getUnreadMessages()).toEqual(unread);
|
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(
|
it('should not add messages as unread if they are not live.', inject(
|
||||||
|
|
Loading…
Reference in a new issue