@@ -282,8 +282,8 @@ describe('PersonalCardsService', () => {
282282 const filters = {
283283 createdOn : {
284284 name : 'custom' ,
285- customDateStart : '2023-02-21T00:00:00.000Z' ,
286- customDateEnd : '2023-02-23T00:00:00.000Z' ,
285+ customDateStart : new Date ( '2023-02-21T00:00:00.000Z' ) ,
286+ customDateEnd : new Date ( '2023-02-23T00:00:00.000Z' ) ,
287287 } ,
288288 } ;
289289
@@ -785,9 +785,9 @@ describe('PersonalCardsService', () => {
785785
786786 const filters = {
787787 updatedOn : {
788- name : DateFilters . lastMonth ,
789- customDateStart : '2023-02-21T00:00:00.000Z' ,
790- customDateEnd : '2023-02-23T00:00:00.000Z' ,
788+ name : DateFilters . lastMonth as string ,
789+ customDateStart : new Date ( '2023-02-21T00:00:00.000Z' ) ,
790+ customDateEnd : new Date ( '2023-02-23T00:00:00.000Z' ) ,
791791 } ,
792792 } ;
793793
@@ -814,22 +814,6 @@ describe('PersonalCardsService', () => {
814814 } ) ;
815815 } ) ;
816816
817- it ( 'getExpenseDetails(): should get expense details' , ( done ) => {
818- apiV2Service . get . and . returnValue ( of ( etxncData ) ) ;
819-
820- const txnSplitGroupID = 'txOJVaaPxo9O' ;
821-
822- personalCardsService . getExpenseDetails ( txnSplitGroupID ) . subscribe ( ( res ) => {
823- expect ( res ) . toEqual ( etxncData . data [ 0 ] ) ;
824- expect ( apiV2Service . get ) . toHaveBeenCalledOnceWith ( '/expenses' , {
825- params : {
826- tx_split_group_id : `eq.${ txnSplitGroupID } ` ,
827- } ,
828- } ) ;
829- done ( ) ;
830- } ) ;
831- } ) ;
832-
833817 it ( 'fetchTransactions(): should fetch transactions' , ( done ) => {
834818 expenseAggregationService . post . and . returnValue ( of ( apiPersonalCardTxnsRes ) ) ;
835819 const accountId = 'baccLesaRlyvLY' ;
0 commit comments