diff --git a/app/services/clients/ledger.client.test.js b/app/services/clients/ledger.client.test.js index 25884451b0..013d558afd 100644 --- a/app/services/clients/ledger.client.test.js +++ b/app/services/clients/ledger.client.test.js @@ -62,12 +62,12 @@ class MockClient { async get (url, description) { let dataResponse - if (url.match(/\.*\/event/)) dataResponse = ledgerTransactionEventsFixture - else if (url.match(/\/transaction\//)) dataResponse = validCreatedTransactionDetailsResponse - else if (url.match(/\/report\/transactions-summary/)) dataResponse = validTransactionSummaryResponse - else if (url.match(/\/agreement/)) dataResponse = validTransactionSummaryResponse + if (url.match(/\.*\/event/)) { dataResponse = ledgerTransactionEventsFixture } + else if (url.match(/\/transaction\//)) dataResponse = { validCreatedTransactionDetailsResponse } + else if (url.match(/\/report\/transactions-summary/)) { dataResponse = validTransactionSummaryResponse } + else if (url.match(/\/agreement/)) dataResponse = { validTransactionSummaryResponse } else if (url.match(/\/payout/)) dataResponse = {} - else if (url.match(/\/transaction\?account_id.*limit_total/)) dataResponse = validTransactionSearchResponse + else if (url.match(/\/transaction\?account_id.*limit_total/)) { dataResponse = validTransactionSearchResponse } else dataResponse = {} return Promise.resolve({ data: dataResponse })