mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-04 03:43:34 +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 imageManipulation from '../../image-manipulation';
 | 
			
		||||
 | 
			
		||||
const uploadService = createUploadService({} as any);
 | 
			
		||||
 | 
			
		||||
@ -8,6 +9,7 @@ describe('Upload service', () => {
 | 
			
		||||
      plugins: {
 | 
			
		||||
        upload: {
 | 
			
		||||
          services: {
 | 
			
		||||
            'image-manipulation': imageManipulation,
 | 
			
		||||
            file: {
 | 
			
		||||
              getFolderPath: () => '/a-folder-path',
 | 
			
		||||
            },
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user