mirror of
https://github.com/strapi/strapi.git
synced 2025-12-24 13:43:41 +00:00
Fix eslint in test utils
This commit is contained in:
parent
3909b91efa
commit
bba4c4c85a
@ -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 = '') => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user