Skip to content

Commit

Permalink
PP-11681 Add parentheses to url.match test conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
JFSGDS committed Mar 11, 2024
1 parent d02a386 commit 1b7c6aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/services/clients/ledger.client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit 1b7c6aa

Please sign in to comment.