Fix failing test
This commit is contained in:
parent
495c6060f9
commit
d3bdcd865e
@ -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
|
// TODO: not yet testing show_desktop_notifications setting
|
||||||
|
_converse.show_chatstate_notifications = true;
|
||||||
|
|
||||||
test_utils.createContacts(_converse, 'current');
|
test_utils.createContacts(_converse, 'current');
|
||||||
spyOn(_converse, 'areDesktopNotificationsEnabled').andReturn(true);
|
spyOn(_converse, 'areDesktopNotificationsEnabled').andReturn(true);
|
||||||
spyOn(_converse, 'showChatStateNotification');
|
spyOn(_converse, 'showChatStateNotification');
|
||||||
|
Loading…
Reference in New Issue
Block a user