fix: 修改alioss.handler中单测文件的报错 (#105)
This commit is contained in:
parent
60fdf14749
commit
412fc75cfe
@ -8,7 +8,7 @@ describe('AliOssHandler', () => {
|
|||||||
buffer: Buffer.from('mockFileContent'),
|
buffer: Buffer.from('mockFileContent'),
|
||||||
} as Express.Multer.File;
|
} as Express.Multer.File;
|
||||||
const mockPutResult = { name: 'mockFileName.txt' };
|
const mockPutResult = { name: 'mockFileName.txt' };
|
||||||
const mockClient = {
|
const mockClient: any = {
|
||||||
put: jest.fn().mockResolvedValue(mockPutResult),
|
put: jest.fn().mockResolvedValue(mockPutResult),
|
||||||
};
|
};
|
||||||
const handler = new AliOssHandler({
|
const handler = new AliOssHandler({
|
||||||
|
Loading…
Reference in New Issue
Block a user