File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ describe('handleGetReportRequestByMsgId', () => {
54
54
const msgid = 'test-msg-id' ;
55
55
const result = await handleGetReportRequestByMsgId ( msgid ) ;
56
56
57
- expect ( databaseManager . getReportByMessageId ) . toHaveBeenCalledWith ( 'transactions' , msgid ) ;
57
+ expect ( databaseManager . getReportByMessageId ) . toHaveBeenCalledWith ( msgid ) ;
58
58
expect ( unwrap ) . toHaveBeenCalledWith ( [ mockReport ] ) ;
59
59
expect ( result ) . toBe ( mockReport ) ;
60
60
expect ( loggerService . log ) . toHaveBeenCalledWith ( `Started handling get request by message id the message id is ${ msgid } ` ) ;
@@ -68,7 +68,7 @@ describe('handleGetReportRequestByMsgId', () => {
68
68
const msgid = 'test-msg-id' ;
69
69
await expect ( handleGetReportRequestByMsgId ( msgid ) ) . rejects . toThrow ( errorMessage ) ;
70
70
71
- expect ( databaseManager . getReportByMessageId ) . toHaveBeenCalledWith ( 'transactions' , msgid ) ;
71
+ expect ( databaseManager . getReportByMessageId ) . toHaveBeenCalledWith ( msgid ) ;
72
72
expect ( loggerService . log ) . toHaveBeenCalledWith (
73
73
`Failed fetching report from database service with error message: ${ errorMessage } ` ,
74
74
'handleGetReportRequestByMsgId()' ,
You can’t perform that action at this time.
0 commit comments