[MOV] mail, *: rename ThreadPreviewView files to ChannelPreviewView

Part of task-2948676.
* = im_livechat, rating, test_mail_full

Part-of: odoo/odoo#99342
This commit is contained in:
Louis Wicket (wil)
2022-09-05 16:53:52 +02:00
parent a78adfb8a3
commit 9beb2b13d3
9 changed files with 5 additions and 5 deletions
@@ -1,12 +1,12 @@
/** @odoo-module **/
import { ThreadPreview } from '@mail/components/thread_preview/thread_preview';
import { ThreadPreview } from '@mail/components/channel_preview_view/channel_preview_view';
import { patch } from 'web.utils';
const components = { ThreadPreview };
patch(components.ThreadPreview.prototype, 'im_livechat/static/src/components/thread_preview/thread_preview.js', {
patch(components.ThreadPreview.prototype, 'im_livechat/static/src/components/channel_preview_view/channel_preview_view.js', {
//--------------------------------------------------------------------------
// Public
@@ -4,7 +4,7 @@ import { start, startServer } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
QUnit.module('thread_preview_tests.js');
QUnit.module('channel_preview_view_tests.js');
QUnit.test('mark as read', async function (assert) {
assert.expect(6);
@@ -3,7 +3,7 @@
import { addFields, addRecordMethods, patchRecordMethods } from '@mail/model/model_core';
import { attr } from '@mail/model/model_field';
// ensure the model definition is loaded before the patch
import '@mail/models/thread_preview_view';
import '@mail/models/channel_preview_view';
patchRecordMethods('ThreadPreviewView', {
/**
@@ -3,7 +3,7 @@
import { afterNextRender, start, startServer } from '@mail/../tests/helpers/test_utils';
QUnit.module('test_mail_full', {}, function () {
QUnit.module('thread_preview_tests.js');
QUnit.module('channel_preview_view_tests.js');
QUnit.test('rating value displayed on the thread preview', async function (assert) {
assert.expect(4);