[MOV] mail, *: move utils files up

* = calendar, hr, hr_holidays, im_livechat, note, sms, snailmail,
test_mail, website_livechat, website_slides
Task-2759586

closes odoo/odoo#86791

Related: odoo/enterprise#25491
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Louis Wicket (wil)
2022-03-23 13:39:56 +01:00
parent 609195b025
commit ee9759a144
97 changed files with 110 additions and 116 deletions
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
import ActivityMenu from '@mail/js/systray/systray_activity_menu';
import testUtils from 'web.test_utils';
@@ -4,7 +4,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import FormView from 'web.FormView';
import KanbanView from 'web.KanbanView';
@@ -4,7 +4,7 @@ import {
beforeEach,
createRootMessagingComponent,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('hr_holidays', {}, function () {
QUnit.module('components', {}, function () {
@@ -4,7 +4,7 @@ import {
beforeEach,
createRootMessagingComponent,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -4,7 +4,7 @@ import { insertAndReplace, link } from '@mail/model/model_field_command';
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('hr_holidays', {}, function () {
QUnit.module('components', {}, function () {
@@ -4,7 +4,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('im_livechat', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('im_livechat', {}, function () {
QUnit.module('components', {}, function () {
@@ -3,7 +3,7 @@
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('im_livechat', {}, function () {
QUnit.module('components', {}, function () {
@@ -4,7 +4,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('im_livechat', {}, function () {
QUnit.module('components', {}, function () {
@@ -5,7 +5,7 @@ import {
beforeEach,
nextAnimationFrame,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import { datetime_to_str } from 'web.time';
@@ -4,7 +4,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('im_livechat', {}, function () {
QUnit.module('components', {}, function () {
@@ -5,7 +5,7 @@ import {
beforeEach,
createRootMessagingComponent,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('im_livechat', {}, function () {
QUnit.module('components', {}, function () {
@@ -5,7 +5,7 @@ import {
beforeEach,
createRootMessagingComponent,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('im_livechat', {}, function () {
QUnit.module('components', {}, function () {
+2 -7
View File
@@ -84,9 +84,7 @@
'mail/static/src/models/*.js',
'mail/static/src/public/*',
'mail/static/src/services/messaging/messaging.js',
'mail/static/src/utils/*/*.js',
'mail/static/src/utils/messaging_component.js',
'mail/static/src/utils/utils.js',
'mail/static/src/utils/*.js',
# Framework JS
'bus/static/src/js/*.js',
'bus/static/src/js/services/bus_service.js',
@@ -116,9 +114,7 @@
# defines mixins and variables used by multiple components
'mail/static/src/components/notification_list/notification_list_item.scss',
'mail/static/src/js/**/*.js',
'mail/static/src/utils/*/*.js',
'mail/static/src/utils/messaging_component.js',
'mail/static/src/utils/utils.js',
'mail/static/src/utils/*.js',
'mail/static/src/scss/*.scss',
'mail/static/src/component_hooks/*.js',
'mail/static/src/components/*/*.js',
@@ -141,7 +137,6 @@
],
'web.tests_assets': [
'mail/static/src/env/test_env.js',
'mail/static/src/utils/test_utils.js',
'mail/static/tests/helpers/*.js',
'mail/static/tests/models/*.js',
],
@@ -6,7 +6,7 @@ import { FieldCommand, unlinkAll } from '@mail/model/model_field_command';
import { RelationSet } from '@mail/model/model_field_relation_set';
import { Listener } from '@mail/model/model_listener';
import { followRelations } from '@mail/model/model_utils';
import { makeDeferred } from '@mail/utils/deferred/deferred';
import { makeDeferred } from '@mail/utils/deferred';
/**
* Object that manage models and records, notably their update cycle: whenever
+1 -1
View File
@@ -4,7 +4,7 @@ import { registerModel } from '@mail/model/model_core';
import { attr, many, one } from '@mail/model/model_field';
import { OnChange } from '@mail/model/model_onchange';
import { insertAndReplace, link, unlink } from '@mail/model/model_field_command';
import { makeDeferred } from '@mail/utils/deferred/deferred';
import { makeDeferred } from '@mail/utils/deferred';
const { EventBus } = owl;
+1 -2
View File
@@ -5,8 +5,7 @@ import { browser } from "@web/core/browser/browser";
import { registerModel } from '@mail/model/model_core';
import { attr, many, one } from '@mail/model/model_field';
import { clear, insert, unlink } from '@mail/model/model_field_command';
import { monitorAudio } from '@mail/utils/media_monitoring/media_monitoring';
import { monitorAudio } from '@mail/utils/media_monitoring';
/**
* The order in which transceivers are added, relevant for RTCPeerConnection.getTransceivers which returns
+2 -2
View File
@@ -4,8 +4,8 @@ import { registerModel } from '@mail/model/model_core';
import { attr, many, one } from '@mail/model/model_field';
import { clear, insert, insertAndReplace, link, replace, unlink, unlinkAll } from '@mail/model/model_field_command';
import { OnChange } from '@mail/model/model_onchange';
import throttle from '@mail/utils/throttle/throttle';
import Timer from '@mail/utils/timer/timer';
import throttle from '@mail/utils/throttle';
import Timer from '@mail/utils/timer';
import { cleanSearchTerm } from '@mail/utils/utils';
import * as mailUtils from '@mail/js/utils';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { makeDeferred } from '@mail/utils/deferred/deferred';
import { makeDeferred } from '@mail/utils/deferred';
/**
* This module define an utility function that enables throttling calls on a
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { makeDeferred } from '@mail/utils/deferred/deferred';
import { makeDeferred } from '@mail/utils/deferred';
//------------------------------------------------------------------------------
// Errors
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { nextAnimationFrame } from '@mail/utils/test_utils';
import { nextAnimationFrame } from '@mail/../tests/helpers/test_utils';
import MockServer from 'web.MockServer';
import { datetime_to_str } from 'web.time';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { TEST_USER_IDS } from '@mail/utils/test_utils';
import { TEST_USER_IDS } from '@mail/../tests/helpers/test_utils';
import {
addFakeModel,
addModelNamesToFetch,
@@ -10,7 +10,7 @@ import {
import { insertAndReplace, replace } from '@mail/model/model_field_command';
import { ChatWindowService } from '@mail/services/chat_window_service/chat_window_service';
import { MessagingService } from '@mail/services/messaging/messaging';
import { makeDeferred } from '@mail/utils/deferred/deferred';
import { makeDeferred } from '@mail/utils/deferred';
import { DialogService } from '@mail/services/dialog_service/dialog_service';
import { getMessagingComponent } from '@mail/utils/messaging_component';
import { nextTick } from '@mail/utils/utils';
@@ -4,7 +4,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
import FormView from 'web.FormView';
import ListView from 'web.ListView';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { afterNextRender, beforeEach, start } from '@mail/utils/test_utils';
import { afterNextRender, beforeEach, start } from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
import { date_to_str } from 'web.time';
@@ -6,7 +6,7 @@ import {
dragenterFiles,
dropFiles,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import { file } from 'web.test_utils';
@@ -4,7 +4,7 @@ import { link } from '@mail/model/model_field_command';
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -6,7 +6,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -4,7 +4,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,12 +1,12 @@
/** @odoo-module **/
import { makeDeferred } from '@mail/utils/deferred/deferred';
import { makeDeferred } from '@mail/utils/deferred';
import {
afterNextRender,
beforeEach,
nextAnimationFrame,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import { file, dom } from 'web.test_utils';
const { createFile, inputFiles } = file;
@@ -226,7 +226,7 @@ QUnit.test('chat window new message: fold', async function (assert) {
QUnit.test('open chat from "new message" chat window should open chat in place of this "new message" chat window', async function (assert) {
/**
* InnerWith computation uses following info:
* ([mocked] global window width: @see `mail/static/src/utils/test_utils.js:start()` method)
* ([mocked] global window width: @see `mail/static/tests/helpers/test_utils.js:start()` method)
* (others: @see mail/static/src/models/chat_window_manager.js:visual)
*
* - chat window width: 325px
@@ -860,7 +860,7 @@ QUnit.test('chat window: close on ESCAPE', async function (assert) {
QUnit.test('focus next visible chat window when closing current chat window with ESCAPE [REQUIRE FOCUS]', async function (assert) {
/**
* computation uses following info:
* ([mocked] global window width: @see `mail/static/src/utils/test_utils.js:start()` method)
* ([mocked] global window width: @see `mail/static/tests/helpers/test_utils.js:start()` method)
* (others: @see mail/static/src/models/chat_window_manager.js:visual)
*
* - chat window width: 325px
@@ -1054,7 +1054,7 @@ QUnit.test('chat window: scroll conservation on toggle discuss', async function
QUnit.test('open 2 different chat windows: enough screen width [REQUIRE FOCUS]', async function (assert) {
/**
* computation uses following info:
* ([mocked] global window width: @see `mail/static/src/utils/test_utils.js:start()` method)
* ([mocked] global window width: @see `mail/static/tests/helpers/test_utils.js:start()` method)
* (others: @see mail/static/src/models/chat_window_manager.js:visual)
*
* - chat window width: 325px
@@ -1657,7 +1657,7 @@ QUnit.test('chat window: switch on TAB', async function (assert) {
QUnit.test('chat window: TAB cycle with 3 open chat windows [REQUIRE FOCUS]', async function (assert) {
/**
* InnerWith computation uses following info:
* ([mocked] global window width: @see `mail/static/src/utils/test_utils.js:start()` method)
* ([mocked] global window width: @see `mail/static/tests/helpers/test_utils.js:start()` method)
* (others: @see mail/static/src/models/chat_window_manager.js:visual)
*
* - chat window width: 325px
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { afterNextRender, beforeEach, start } from '@mail/utils/test_utils';
import { afterNextRender, beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { afterNextRender, beforeEach, nextAnimationFrame, start } from '@mail/utils/test_utils';
import { afterNextRender, beforeEach, nextAnimationFrame, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { afterNextRender, beforeEach, nextAnimationFrame, start } from '@mail/utils/test_utils';
import { afterNextRender, beforeEach, nextAnimationFrame, start } from '@mail/../tests/helpers/test_utils';
import { makeTestPromise } from 'web.test_utils';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -9,7 +9,7 @@ import {
nextAnimationFrame,
pasteFiles,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import FormView from 'web.FormView';
import {
@@ -1,11 +1,11 @@
/** @odoo-module **/
import { makeDeferred } from '@mail/utils/deferred/deferred';
import { makeDeferred } from '@mail/utils/deferred';
import {
beforeEach,
nextAnimationFrame,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -5,7 +5,7 @@ import {
beforeEach,
nextAnimationFrame,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -4,7 +4,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -4,7 +4,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import { datetime_to_str } from 'web.time';
@@ -4,7 +4,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,12 +1,12 @@
/** @odoo-module **/
import { makeDeferred } from '@mail/utils/deferred/deferred';
import { makeDeferred } from '@mail/utils/deferred';
import {
afterNextRender,
beforeEach,
nextAnimationFrame,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -7,7 +7,7 @@ import {
nextAnimationFrame,
start,
startServer,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
import { makeTestPromise, file } from 'web.test_utils';
@@ -5,7 +5,7 @@ import {
beforeEach,
createRootMessagingComponent,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -6,7 +6,7 @@ import {
beforeEach,
createRootMessagingComponent,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
@@ -6,7 +6,7 @@ import {
beforeEach,
createRootMessagingComponent,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,13 +1,13 @@
/** @odoo-module **/
import { insert, link } from '@mail/model/model_field_command';
import { makeDeferred } from '@mail/utils/deferred/deferred';
import { makeDeferred } from '@mail/utils/deferred';
import {
afterNextRender,
beforeEach,
createRootMessagingComponent,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
@@ -5,7 +5,7 @@ import {
beforeEach,
createRootMessagingComponent,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,14 +1,14 @@
/** @odoo-module **/
import { insert, insertAndReplace, link, replace } from '@mail/model/model_field_command';
import { makeDeferred } from '@mail/utils/deferred/deferred';
import { makeDeferred } from '@mail/utils/deferred';
import {
afterNextRender,
beforeEach,
createRootMessagingComponent,
nextAnimationFrame,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
@@ -4,7 +4,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import { makeTestPromise } from 'web.test_utils';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { afterNextRender, beforeEach, start, } from '@mail/utils/test_utils';
import { afterNextRender, beforeEach, start, } from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { afterNextRender, beforeEach, start } from '@mail/utils/test_utils';
import { afterNextRender, beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -5,7 +5,7 @@ import {
beforeEach,
createRootMessagingComponent,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -5,7 +5,7 @@ import {
beforeEach,
createRootMessagingComponent,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { afterNextRender, beforeEach, start } from '@mail/utils/test_utils';
import { afterNextRender, beforeEach, start } from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { afterNextRender, beforeEach, start } from '@mail/utils/test_utils';
import { afterNextRender, beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -6,7 +6,7 @@ import {
createRootMessagingComponent,
nextAnimationFrame,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -6,7 +6,7 @@ import {
beforeEach,
dragenterFiles,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('components', {}, function () {
@@ -1,7 +1,7 @@
/** @odoo-module **/
import { Many2OneAvatarUser } from '@mail/js/m2x_avatar_user';
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
import { click, getFixture, legacyExtraNextTick, patchWithCleanup, triggerHotkey } from "@web/../tests/helpers/utils";
import { doAction } from '@web/../tests/webclient/helpers';
import { registry } from "@web/core/registry";
@@ -4,7 +4,7 @@ import { clear, insertAndReplace } from '@mail/model/model_field_command';
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('model_field_commands', {}, function () {
@@ -4,7 +4,7 @@ import { insertAndReplace } from '@mail/model/model_field_command';
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('model_field_commands', {}, function () {
@@ -4,7 +4,7 @@ import { insert, insertAndReplace } from '@mail/model/model_field_command';
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('model_field_commands', {}, function () {
@@ -4,7 +4,7 @@ import { insertAndReplace, link } from '@mail/model/model_field_command';
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('model_field_commands', {}, function () {
@@ -4,7 +4,7 @@ import { insertAndReplace, replace } from '@mail/model/model_field_command';
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('model_field_commands', {}, function () {
@@ -8,7 +8,7 @@ import {
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('model_field_commands', {}, function () {
@@ -4,7 +4,7 @@ import { insertAndReplace, unlinkAll } from '@mail/model/model_field_command';
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('model_field_commands', {}, function () {
@@ -4,7 +4,7 @@ import { insertAndReplace, unlink } from '@mail/model/model_field_command';
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('model_field_commands', {}, function () {
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('models', {}, function () {
@@ -1,7 +1,7 @@
/** @odoo-module **/
import { insertAndReplace } from '@mail/model/model_field_command';
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('models', {}, function () {
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
import { file } from 'web.test_utils';
@@ -1,7 +1,7 @@
/** @odoo-module **/
import { insert, insertAndReplace, link } from '@mail/model/model_field_command';
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
import { str_to_datetime } from 'web.time';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('models', {}, function () {
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('models', {}, function () {
@@ -1,7 +1,7 @@
/** @odoo-module **/
import { insert } from '@mail/model/model_field_command';
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail', {}, function () {
QUnit.module('models', {}, function () {
@@ -5,7 +5,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import testUtils from 'web.test_utils';
@@ -1,7 +1,7 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import throttle from '@mail/utils/throttle/throttle';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
import throttle from '@mail/utils/throttle';
import { nextTick } from '@mail/utils/utils';
const { ThrottleReinvokedError, ThrottleCanceledError } = throttle;
@@ -1,7 +1,7 @@
/** @odoo-module **/
import { beforeEach, nextTick, start } from '@mail/utils/test_utils';
import Timer from '@mail/utils/timer/timer';
import { beforeEach, nextTick, start } from '@mail/../tests/helpers/test_utils';
import Timer from '@mail/utils/timer';
const { TimerClearedError } = Timer;
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { afterNextRender, beforeEach, start } from '@mail/utils/test_utils';
import { afterNextRender, beforeEach, start } from '@mail/../tests/helpers/test_utils';
import { editSearchBar } from '@web/../tests/core/commands/command_service_tests';
import { click, getFixture, nextTick, patchWithCleanup, triggerHotkey } from "@web/../tests/helpers/utils";
import { browser } from '@web/core/browser/browser';
@@ -1,12 +1,12 @@
/** @odoo-module **/
import { makeDeferred } from '@mail/utils/deferred/deferred';
import { makeDeferred } from '@mail/utils/deferred';
import {
afterNextRender,
beforeEach,
nextAnimationFrame,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import config from 'web.config';
import fieldRegistry from 'web.field_registry';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
import FormView from 'web.FormView';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('mail_bot', {}, function () {
QUnit.module('messaging_initializer_tests.js', {
@@ -1,7 +1,7 @@
/** @odoo-module **/
import ActivityMenu from '@mail/js/systray/systray_activity_menu';
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
import testUtils from 'web.test_utils';
@@ -1,12 +1,12 @@
/** @odoo-module **/
import { insert, insertAndReplace } from '@mail/model/model_field_command';
import { makeDeferred } from '@mail/utils/deferred/deferred';
import { makeDeferred } from '@mail/utils/deferred';
import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
@@ -5,7 +5,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
import Bus from 'web.Bus';
@@ -3,7 +3,7 @@
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import FormView from 'web.FormView';
import testUtils from 'web.test_utils';
@@ -3,7 +3,7 @@
import {
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
QUnit.module('website_livechat', {}, function () {
QUnit.module('components', {}, function () {
@@ -4,7 +4,7 @@ import {
afterNextRender,
beforeEach,
start,
} from '@mail/utils/test_utils';
} from '@mail/../tests/helpers/test_utils';
import FormView from 'web.FormView';
import { mock } from 'web.test_utils';
@@ -1,6 +1,6 @@
/** @odoo-module **/
import { beforeEach, start } from '@mail/utils/test_utils';
import { beforeEach, start } from '@mail/../tests/helpers/test_utils';
QUnit.module('website_slides', {}, function () {
QUnit.module('components', {}, function () {