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