mirror of
https://github.com/strapi/strapi.git
synced 2025-08-10 09:47:46 +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();
|
||||
|
||||
global.strapi = {
|
||||
dirs: { root: process.cwd(), public: join(process.cwd(), 'public') },
|
||||
dirs: { app: { root: process.cwd() }, static: { public: join(process.cwd(), 'public') } },
|
||||
plugins: { upload: {} },
|
||||
server: { app: { on: jest.fn() }, routes: registerRoute },
|
||||
admin: { services: { permission: { actionProvider: { registerMany: jest.fn() } } } },
|
||||
@ -56,7 +56,7 @@ describe('Upload plugin register function', () => {
|
||||
const setConfig = jest.fn();
|
||||
|
||||
global.strapi = {
|
||||
dirs: { root: process.cwd(), public: join(process.cwd(), 'public') },
|
||||
dirs: { app: { root: process.cwd() }, static: { public: join(process.cwd(), 'public') } },
|
||||
plugins: { upload: {} },
|
||||
server: { app: { on: jest.fn() }, routes: jest.fn() },
|
||||
admin: { services: { permission: { actionProvider: { registerMany: jest.fn() } } } },
|
||||
|
Loading…
x
Reference in New Issue
Block a user