From ba3b1a64e5bb06c882a02eb5415d67b928e3c8bf Mon Sep 17 00:00:00 2001 From: luch <32321690+luch1994@users.noreply.github.com> Date: Thu, 9 May 2024 21:27:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9alioss.handler?= =?UTF-8?q?=E4=B8=AD=E5=8D=95=E6=B5=8B=E6=96=87=E4=BB=B6=E7=9A=84=E6=8A=A5?= =?UTF-8?q?=E9=94=99=20(#105)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/modules/file/__test/alioss.handler.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/modules/file/__test/alioss.handler.spec.ts b/server/src/modules/file/__test/alioss.handler.spec.ts index b570c521..2754989b 100644 --- a/server/src/modules/file/__test/alioss.handler.spec.ts +++ b/server/src/modules/file/__test/alioss.handler.spec.ts @@ -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({