From 1b7c6aaf9206832fbb8c28203a7796ca74331dfa Mon Sep 17 00:00:00 2001 From: John Shields Date: Mon, 11 Mar 2024 12:23:32 +0000 Subject: [PATCH] PP-11681 Add parentheses to url.match test conditions. --- app/services/clients/ledger.client.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 })