summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-02-14 14:47:03 +0100
committerAlexandre Kühn <aku@odoo.com>2018-02-20 13:31:23 +0100
commit22f04b4023038e72fe74ff6d19c7ea4068c532cb (patch)
tree114b8ffa54509ac0c8542e87da9bd022c053a3e7 /addons/web/static/src/js/views/basic/basic_model.js
parent275910e38c3a4b45c2d227597a9e18eb106a3d9e (diff)
[FIX] mail: tests: improved mock_server mocked initMessaging
Before this commit, if we wanted to add channels on rpc initMessaging, we had to mock this rpc completely. Now, with this commit, we can use data 'initMessaging', whose keys can overwrite the default mocked initMessaging. For instance, if this.data.initMessaging has the key 'channel_slots', then the mocked initMessaging rpc will return a new state for the existing channels to the chat_manager. This is needed in order to reduce the size of tests than need some custom initMessaging state, such as any test that needs at least one non-static channel (i.e. neither channel_inbox nor channel_starred).
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions