summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/thread_icon/thread_icon_tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/components/thread_icon/thread_icon_tests.js')
-rw-r--r--addons/mail/static/src/components/thread_icon/thread_icon_tests.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/mail/static/src/components/thread_icon/thread_icon_tests.js b/addons/mail/static/src/components/thread_icon/thread_icon_tests.js
index 21966cc206f..d233d6f88a8 100644
--- a/addons/mail/static/src/components/thread_icon/thread_icon_tests.js
+++ b/addons/mail/static/src/components/thread_icon/thread_icon_tests.js
@@ -54,10 +54,10 @@ QUnit.test('chat: correspondent is typing', async function (assert) {
members: [this.data.currentPartnerId, 17],
});
await this.start();
- const thread = this.env.models['mail.thread'].find(thread =>
- thread.id === 20 &&
- thread.model === 'mail.channel'
- );
+ const thread = this.env.models['mail.thread'].findFromIdentifyingData({
+ id: 20,
+ model: 'mail.channel',
+ });
await this.createThreadIcon(thread);
assert.containsOnce(