mirror of
https://github.com/strapi/strapi.git
synced 2025-09-09 08:39:45 +00:00
fix(upload): failing register unit test
This commit is contained in:
parent
e0f395b464
commit
95bc1dc9f0
@ -32,6 +32,13 @@ jest.mock('@strapi/provider-upload-local', () => ({
|
|||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
jest.mock('../utils', () => ({
|
||||||
|
...jest.requireActual('../utils'),
|
||||||
|
getService: () => ({
|
||||||
|
contentManager: { entityManager: { addSignedFileUrlsToAdmin: jest.fn() } },
|
||||||
|
}),
|
||||||
|
}));
|
||||||
|
|
||||||
describe('Upload plugin register function', () => {
|
describe('Upload plugin register function', () => {
|
||||||
test('The upload plugin registers the /upload route', async () => {
|
test('The upload plugin registers the /upload route', async () => {
|
||||||
const registerRoute = jest.fn();
|
const registerRoute = jest.fn();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user