[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user