File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/common/utils/__tests__ Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- import { InvokeCommand , LambdaClient } from '@aws-sdk/client-lambda'
1+ import { type InvokeCommand , LambdaClient } from '@aws-sdk/client-lambda'
22
33import { 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' )
You can’t perform that action at this time.
0 commit comments