web_editor/static/tests/mock_services.js
Данил Воробьев 2db2b9d3eb initial commit
2024-05-03 09:47:49 +00:00

17 lines
586 B
JavaScript

/** @odoo-module */
import { patch } from '@web/core/utils/patch';
import { registry } from '@web/core/registry';
import { utils } from '@web/../tests/helpers/mock_env';
import { getColorPickerTemplateService } from '@web_editor/js/wysiwyg/get_color_picker_template_service';
const { prepareRegistriesWithCleanup } = utils;
const serviceRegistry = registry.category('services');
patch(utils, {
prepareRegistriesWithCleanup() {
prepareRegistriesWithCleanup(...arguments);
serviceRegistry.add('get_color_picker_template', getColorPickerTemplateService);
},
});