fix: 修改alioss.handler中单测文件的报错 (#105)

This commit is contained in:
luch 2024-05-09 21:27:57 +08:00 committed by sudoooooo
parent 00d5e98712
commit ba3b1a64e5

View File

@ -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({