Fix tests

Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
soupette 2022-03-15 09:20:35 +01:00 committed by Convly
parent fb720da187
commit ea4b16b036
2 changed files with 6 additions and 2 deletions

View File

@ -11,7 +11,7 @@ const fs = require('../fs');
describe('Strapi fs utils', () => {
const strapi = {
dirs: { root: '/tmp' },
dirs: { dist: { root: '/tmp' }, app: { root: '/tmp' } },
};
test('Provides new functions', () => {

View File

@ -20,7 +20,11 @@ describe('Upload plugin bootstrap function', () => {
const registerMany = jest.fn(() => {});
global.strapi = {
dirs: { root: process.cwd(), public: join(process.cwd(), 'public') },
dirs: {
dist: { root: process.cwd() },
app: { root: process.cwd() },
static: { public: join(process.cwd(), 'public') },
},
admin: {
services: { permission: { actionProvider: { registerMany } } },
},