mirror of
https://github.com/strapi/strapi.git
synced 2025-12-04 02:51:26 +00:00
chore: create strapi mock for test
This commit is contained in:
parent
7de63df3ae
commit
9c04fd0da8
@ -1,4 +1,5 @@
|
|||||||
import createUploadService from '../../upload';
|
import createUploadService from '../../upload';
|
||||||
|
import imageManipulation from '../../image-manipulation';
|
||||||
|
|
||||||
const uploadService = createUploadService({} as any);
|
const uploadService = createUploadService({} as any);
|
||||||
|
|
||||||
@ -8,6 +9,7 @@ describe('Upload service', () => {
|
|||||||
plugins: {
|
plugins: {
|
||||||
upload: {
|
upload: {
|
||||||
services: {
|
services: {
|
||||||
|
'image-manipulation': imageManipulation,
|
||||||
file: {
|
file: {
|
||||||
getFolderPath: () => '/a-folder-path',
|
getFolderPath: () => '/a-folder-path',
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user