mirror of
https://github.com/strapi/strapi.git
synced 2025-09-27 17:29:14 +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', () => {
|
describe('Strapi fs utils', () => {
|
||||||
const strapi = {
|
const strapi = {
|
||||||
dirs: { root: '/tmp' },
|
dirs: { dist: { root: '/tmp' }, app: { root: '/tmp' } },
|
||||||
};
|
};
|
||||||
|
|
||||||
test('Provides new functions', () => {
|
test('Provides new functions', () => {
|
||||||
|
@ -20,7 +20,11 @@ describe('Upload plugin bootstrap function', () => {
|
|||||||
const registerMany = jest.fn(() => {});
|
const registerMany = jest.fn(() => {});
|
||||||
|
|
||||||
global.strapi = {
|
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: {
|
admin: {
|
||||||
services: { permission: { actionProvider: { registerMany } } },
|
services: { permission: { actionProvider: { registerMany } } },
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user