Skip to content

Commit 740640f

Browse files
CI fix
1 parent 89a05bf commit 740640f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/common/utils/__tests__/lambda.utils.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InvokeCommand, LambdaClient } from '@aws-sdk/client-lambda'
1+
import { type InvokeCommand, LambdaClient } from '@aws-sdk/client-lambda'
22

33
import { invokeLambda, invokeReplyLambda } from '..'
44

@@ -39,7 +39,10 @@ describe('invokeReplyLambda', () => {
3939

4040
const payload = {
4141
combinedText: 'test text',
42-
imagesData: [Buffer.from('large image data 1'), Buffer.from('large image data 2')],
42+
imagesData: [
43+
Buffer.from('large image data 1'),
44+
Buffer.from('large image data 2'),
45+
],
4346
replyId: 123,
4447
chatId: 456,
4548
message: { text: 'test' },
@@ -48,7 +51,7 @@ describe('invokeReplyLambda', () => {
4851
await invokeReplyLambda(payload)
4952

5053
expect(capturedPayload).toBeDefined()
51-
const parsedPayload = JSON.parse(capturedPayload!.toString())
54+
const parsedPayload = JSON.parse(capturedPayload?.toString())
5255

5356
expect(parsedPayload).not.toHaveProperty('imagesData')
5457
expect(parsedPayload).toHaveProperty('combinedText', 'test text')

0 commit comments

Comments
 (0)