mirror of
https://github.com/strapi/strapi.git
synced 2025-08-10 17:58:07 +00:00
Merge branch 'features/typescript' into typescript/kitchensink-ts
This commit is contained in:
commit
0b0b81d222
@ -37,7 +37,7 @@ describe('Upload plugin register function', () => {
|
|||||||
const registerRoute = jest.fn();
|
const registerRoute = jest.fn();
|
||||||
|
|
||||||
global.strapi = {
|
global.strapi = {
|
||||||
dirs: { root: process.cwd(), public: join(process.cwd(), 'public') },
|
dirs: { app: { root: process.cwd() }, static: { public: join(process.cwd(), 'public') } },
|
||||||
plugins: { upload: {} },
|
plugins: { upload: {} },
|
||||||
server: { app: { on: jest.fn() }, routes: registerRoute },
|
server: { app: { on: jest.fn() }, routes: registerRoute },
|
||||||
admin: { services: { permission: { actionProvider: { registerMany: jest.fn() } } } },
|
admin: { services: { permission: { actionProvider: { registerMany: jest.fn() } } } },
|
||||||
@ -56,7 +56,7 @@ describe('Upload plugin register function', () => {
|
|||||||
const setConfig = jest.fn();
|
const setConfig = jest.fn();
|
||||||
|
|
||||||
global.strapi = {
|
global.strapi = {
|
||||||
dirs: { root: process.cwd(), public: join(process.cwd(), 'public') },
|
dirs: { app: { root: process.cwd() }, static: { public: join(process.cwd(), 'public') } },
|
||||||
plugins: { upload: {} },
|
plugins: { upload: {} },
|
||||||
server: { app: { on: jest.fn() }, routes: jest.fn() },
|
server: { app: { on: jest.fn() }, routes: jest.fn() },
|
||||||
admin: { services: { permission: { actionProvider: { registerMany: jest.fn() } } } },
|
admin: { services: { permission: { actionProvider: { registerMany: jest.fn() } } } },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user