Fix eslint in test utils

This commit is contained in:
Alexandre Bodin 2022-09-05 15:05:26 +02:00
parent 3909b91efa
commit bba4c4c85a

View File

@ -12,11 +12,11 @@ Object.defineProperty(global, 'strapi', {
strapiInstance = value;
strapiInstance.plugin = (name) => strapiInstance.plugins[name];
_.mapValues(strapi.plugins, (plugin) => {
plugin.controller = (name) => plugin.controllers[name];
plugin.service = (name) => plugin.services[name];
plugin.contentType = (name) => plugin.contentTypes[name];
plugin.policy = (name) => plugin.policies[name];
_.mapValues(strapi.plugins, (acc) => {
acc.controller = (name) => acc.controllers[name];
acc.service = (name) => acc.services[name];
acc.contentType = (name) => acc.contentTypes[name];
acc.policy = (name) => acc.policies[name];
});
strapiInstance.service = (name = '') => {