33 getMergeableDataAndConflictFields ,
44 getMergeFieldTranslationKey ,
55 getMergeFieldValue ,
6- getSourceTransaction ,
6+ getSourceTransactionFromMergeTransaction ,
77 isEmptyMergeValue ,
88 selectTargetAndSourceTransactionIDsForMerge ,
99 shouldNavigateToReceiptReview ,
@@ -13,13 +13,13 @@ import createRandomMergeTransaction from '../utils/collections/mergeTransaction'
1313import createRandomTransaction from '../utils/collections/transaction' ;
1414
1515describe ( 'MergeTransactionUtils' , ( ) => {
16- describe ( 'getSourceTransaction ' , ( ) => {
16+ describe ( 'getSourceTransactionFromMergeTransaction ' , ( ) => {
1717 it ( 'should return undefined when mergeTransaction is undefined' , ( ) => {
1818 // Given a null merge transaction
1919 const mergeTransaction = undefined ;
2020
2121 // When we try to get the source transaction
22- const result = getSourceTransaction ( mergeTransaction ) ;
22+ const result = getSourceTransactionFromMergeTransaction ( mergeTransaction ) ;
2323
2424 // Then it should return undefined because the merge transaction is undefined
2525 expect ( result ) . toBeUndefined ( ) ;
@@ -36,7 +36,7 @@ describe('MergeTransactionUtils', () => {
3636 } ;
3737
3838 // When we try to get the source transaction
39- const result = getSourceTransaction ( mergeTransaction ) ;
39+ const result = getSourceTransactionFromMergeTransaction ( mergeTransaction ) ;
4040
4141 // Then it should return undefined because the source transaction ID doesn't match any eligible transaction
4242 expect ( result ) . toBeUndefined ( ) ;
@@ -55,7 +55,7 @@ describe('MergeTransactionUtils', () => {
5555 } ;
5656
5757 // When we try to get the source transaction
58- const result = getSourceTransaction ( mergeTransaction ) ;
58+ const result = getSourceTransactionFromMergeTransaction ( mergeTransaction ) ;
5959
6060 // Then it should return the matching transaction from the eligible transactions
6161 expect ( result ) . toBe ( sourceTransaction ) ;
0 commit comments