@@ -6,7 +6,7 @@ import {actionR14932 as mockIOUAction, originalMessageR14932 as mockOriginalMess
66import { chatReportR14932 as mockChatReport , iouReportR14932 as mockIOUReport } from '../../__mocks__/reportData/reports' ;
77import CONST from '../../src/CONST' ;
88import * as ReportActionsUtils from '../../src/libs/ReportActionsUtils' ;
9- import { getOneTransactionThreadReportID , getOriginalMessage , getSendMoneyFlowOneTransactionReportAction , isIOUActionMatchingTransactionList } from '../../src/libs/ReportActionsUtils' ;
9+ import { getOneTransactionThreadReportID , getOriginalMessage , getSendMoneyFlowAction , isIOUActionMatchingTransactionList } from '../../src/libs/ReportActionsUtils' ;
1010import ONYXKEYS from '../../src/ONYXKEYS' ;
1111import type { Report , ReportAction } from '../../src/types/onyx' ;
1212import { createRandomReport } from '../utils/collections/reports' ;
@@ -856,7 +856,7 @@ describe('ReportActionsUtils', () => {
856856 } ) ;
857857 } ) ;
858858
859- describe ( 'getSendMoneyFlowOneTransactionReportAction ' , ( ) => {
859+ describe ( 'getSendMoneyFlowAction ' , ( ) => {
860860 const mockChatReportID = `${ ONYXKEYS . COLLECTION . REPORT } REPORT` as const ;
861861 const mockDMChatReportID = `${ ONYXKEYS . COLLECTION . REPORT } REPORT_DM` as const ;
862862 const childReportID = `${ ONYXKEYS . COLLECTION . REPORT } childReport123` as const ;
@@ -891,27 +891,27 @@ describe('ReportActionsUtils', () => {
891891 } ;
892892
893893 it ( 'should return undefined for a single non-IOU action' , ( ) => {
894- expect ( getSendMoneyFlowOneTransactionReportAction ( [ nonIOUAction ] , mockedReports [ mockDMChatReportID ] ) ?. childReportID ) . toBeUndefined ( ) ;
894+ expect ( getSendMoneyFlowAction ( [ nonIOUAction ] , mockedReports [ mockDMChatReportID ] ) ?. childReportID ) . toBeUndefined ( ) ;
895895 } ) ;
896896
897897 it ( 'should return undefined for multiple IOU actions regardless of type' , ( ) => {
898- expect ( getSendMoneyFlowOneTransactionReportAction ( [ payAction , payAction ] , mockedReports [ mockDMChatReportID ] ) ?. childReportID ) . toBeUndefined ( ) ;
898+ expect ( getSendMoneyFlowAction ( [ payAction , payAction ] , mockedReports [ mockDMChatReportID ] ) ?. childReportID ) . toBeUndefined ( ) ;
899899 } ) ;
900900
901901 it ( 'should return undefined for a single IOU action that is not `Pay`' , ( ) => {
902- expect ( getSendMoneyFlowOneTransactionReportAction ( [ createAction ] , mockedReports [ mockDMChatReportID ] ) ?. childReportID ) . toBeUndefined ( ) ;
902+ expect ( getSendMoneyFlowAction ( [ createAction ] , mockedReports [ mockDMChatReportID ] ) ?. childReportID ) . toBeUndefined ( ) ;
903903 } ) ;
904904
905905 it ( 'should return the appropriate childReportID for a valid single `Pay` IOU action in DM chat' , ( ) => {
906- expect ( getSendMoneyFlowOneTransactionReportAction ( [ payAction ] , mockedReports [ mockDMChatReportID ] ) ?. childReportID ) . toEqual ( childReportID ) ;
906+ expect ( getSendMoneyFlowAction ( [ payAction ] , mockedReports [ mockDMChatReportID ] ) ?. childReportID ) . toEqual ( childReportID ) ;
907907 } ) ;
908908
909909 it ( 'should return undefined for a valid single `Pay` IOU action in a chat that is not DM' , ( ) => {
910- expect ( getSendMoneyFlowOneTransactionReportAction ( [ payAction ] , mockedReports [ mockChatReportID ] ) ?. childReportID ) . toBeUndefined ( ) ;
910+ expect ( getSendMoneyFlowAction ( [ payAction ] , mockedReports [ mockChatReportID ] ) ?. childReportID ) . toBeUndefined ( ) ;
911911 } ) ;
912912
913913 it ( 'should return undefined for a valid `Pay` IOU action in DM chat that has also a create IOU action' , ( ) => {
914- expect ( getSendMoneyFlowOneTransactionReportAction ( [ payAction , createAction ] , mockedReports [ mockDMChatReportID ] ) ?. childReportID ) . toBeUndefined ( ) ;
914+ expect ( getSendMoneyFlowAction ( [ payAction , createAction ] , mockedReports [ mockDMChatReportID ] ) ?. childReportID ) . toBeUndefined ( ) ;
915915 } ) ;
916916 } ) ;
917917
0 commit comments