@@ -42,7 +42,7 @@ describe("Accounts", function() {
4242 } )
4343
4444 it ( "get accounts list" , async function ( ) {
45- const accounts = await moneyhub . getAccountsList ( { userId} )
45+ const accounts = await moneyhub . getAccountsList ( { userId} , { version : "v2" } )
4646 expect ( accounts . data . length ) . to . be . at . least ( 2 )
4747 const cashAccount = accounts . data . find ( a => a . type === "cash:current" )
4848 const pension = accounts . data . find ( a => a . type === "pension" )
@@ -56,7 +56,7 @@ describe("Accounts", function() {
5656 } )
5757
5858 it ( "get accounts list with transactionData" , async function ( ) {
59- const accounts = await moneyhub . getAccountsList ( { userId, params : { showTransactionData : true } } )
59+ const accounts = await moneyhub . getAccountsList ( { userId, params : { showTransactionData : true } } , { version : "v2" } )
6060 expect ( accounts . data . length ) . to . be . at . least ( 2 )
6161 const cashAccount = accounts . data . find ( a => a . type === "cash:current" )
6262 const pension = accounts . data . find ( a => a . type === "pension" )
@@ -70,7 +70,7 @@ describe("Accounts", function() {
7070 } )
7171
7272 it ( "get accounts list with details" , async function ( ) {
73- const accounts = await moneyhub . getAccountsListWithDetails ( { userId} )
73+ const accounts = await moneyhub . getAccountsListWithDetails ( { userId} , { version : "v2" } )
7474 expect ( accounts . data . length ) . to . be . at . least ( 2 )
7575 const cashAccount = accounts . data . find ( a => a . type === "cash:current" )
7676 const pension = accounts . data . find ( a => a . type === "pension" )
@@ -93,7 +93,7 @@ describe("Accounts", function() {
9393 params : {
9494 counterpartiesVersion : "v2" ,
9595 } ,
96- } )
96+ } , { version : "v2" } )
9797 expect ( counterparties . length ) . to . be . greaterThan ( 6 )
9898 expectTypeOf < Counterparties . Counterparty [ ] > ( counterparties )
9999 } )
0 commit comments