[FIX] mail: test utils: mock is_odoo_focused
In the mocked version of the longpolling bus used in tests, the is_odoo_focused function should be defined to prevent crashes when we simulate incoming messages.
This commit is contained in:
@@ -37,6 +37,9 @@ function createBusService(bus) {
|
||||
* Do nothing
|
||||
*/
|
||||
start_polling: function () {},
|
||||
is_odoo_focused: function () {
|
||||
return true;
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user