mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
fix upload bootstrap unit test
This commit is contained in:
parent
dd36d43b52
commit
f245e9dbe2
@ -4,7 +4,15 @@ const { join } = require('path');
|
||||
|
||||
const bootstrap = require('../bootstrap');
|
||||
|
||||
jest.mock('@strapi/provider-upload-local', () => ({ init() {} }));
|
||||
jest.mock('@strapi/provider-upload-local', () => ({
|
||||
init() {
|
||||
return {
|
||||
uploadStream: jest.fn(),
|
||||
upload: jest.fn(),
|
||||
delete: jest.fn(),
|
||||
};
|
||||
},
|
||||
}));
|
||||
|
||||
describe('Upload plugin bootstrap function', () => {
|
||||
test('Sets default config if it does not exist', async () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user