Skip to content

Commit 4822d9e

Browse files
Daniel1984JacobPlaster
authored andcommitted
pulseHistory test coverage
1 parent a241c4c commit 4822d9e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

test/lib/rest-2-integration.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ describe('RESTv2 integration (mock server) tests', () => {
140140
['performance'],
141141
['calcAvailableBalance', 'calc.sym.dir.rate.type', ['sym', 'dir', 'rate', 'type']],
142142
['addPulse', 'add_pulse.title.content', [{ title: 'title', content: 'content' }]],
143-
['deletePulse', 'delete_pulse.pid', [{ pid: 'pid' }]]
143+
['deletePulse', 'delete_pulse.pid', [{ pid: 'pid' }]],
144+
['pulseHistory', 'pulse_hist.1', [{ isPublic: 1 }]]
144145
]
145146

146147
methods.forEach((m) => {

test/lib/rest-2-unit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,6 @@ describe('RESTv2', () => {
7575
testMethod('addPulse', '/auth/w/pulse/add', false)
7676
testMethod('deletePulse', '/auth/w/pulse/del', false)
7777
testMethod('publicPulseHistory', '/pulse/hist?limit=2&end=1589559090651', true, 2, 1589559090651)
78+
testMethod('pulseHistory', '/auth/r/pulse/hist', false)
7879
})
7980
})

0 commit comments

Comments
 (0)