Skip to content

Commit

Permalink
#775 fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
davesag committed Jun 4, 2024
1 parent 7561217 commit d36a406
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions test/unit/api/private/getTransactions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ const isOneOf = require('../../../../src/validation/isOneOf')
const fromTimestampUtc = '2014-08-01T08:00:00Z'
const toTimestampUtc = '2016-08-01T08:00:00Z'

const config = {
const config1 = {
handler: 'getTransactions',
params: {
accountGuid: 'dd015a29-8f73-4469-a5fa-ea91544dfcda',
fromTimestampUtc,
toTimestampUtc,
txTypes: ['Brokerage', 'Trade'],
includeTotals: 'false'
txTypes: ['Brokerage', 'Trade']
},
useDefaults: true,
validation: {
Expand All @@ -26,4 +25,14 @@ const config = {
}
}

doTest(config)
doTest(config1)

const config2 = {
...config1,
params: {
...config1.params,
includeTotals: 'false'
}
}

doTest(config2)

0 comments on commit d36a406

Please sign in to comment.