mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Fix tests
Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
parent
fb720da187
commit
ea4b16b036
@ -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', () => {
|
||||
|
@ -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 } } },
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user