[FIX] mail: update test broken by forward port

The _mockMessageFetch method was changed in the mockserver in saas11.2.
The forward port then obviously broke this test, which depended on the
fact that it returns an empty list.
This commit is contained in:
Géry Debongnie
2018-04-24 14:37:14 +02:00
parent 3412dae02d
commit 3b3f6cc069
@@ -221,6 +221,12 @@ QUnit.test('messaging menu widget: menu with no records', function (assert) {
var messagingMenu = new systray.MessagingMenu();
testUtils.addMockEnvironment(messagingMenu, {
services: this.services,
mockRPC: function (route, args) {
if (args.method === 'message_fetch') {
return $.when([]);
}
return this._super.apply(this, arguments);
}
});
messagingMenu.appendTo($('#qunit-fixture'));
messagingMenu.$('.dropdown-toggle').click();