Skip to content

Commit cb20347

Browse files
danielJacobPlaster
authored andcommitted
adding tests for new addPulse private method
1 parent d443ca0 commit cb20347

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
@@ -137,7 +137,8 @@ describe('RESTv2 integration (mock server) tests', () => {
137137
['fundingInfo', 'f_info.k', ['k']],
138138
['derivsPositionCollateralSet', 'derivs_pos_col_set.symbol.collateral', ['symbol', 'collateral']],
139139
['performance'],
140-
['calcAvailableBalance', 'calc.sym.dir.rate.type', ['sym', 'dir', 'rate', 'type']]
140+
['calcAvailableBalance', 'calc.sym.dir.rate.type', ['sym', 'dir', 'rate', 'type']],
141+
['addPulse', 'add_pulse.title.content', [{ title: 'title', content: 'content' }]]
141142
]
142143

143144
methods.forEach((m) => {

test/lib/rest-2-unit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,6 @@ describe('RESTv2', () => {
7272
testMethod('ledgers', '/auth/r/ledgers/hist', false)
7373
testMethod('ledgers', '/auth/r/ledgers/USD/hist', false, 'USD')
7474
testMethod('publicPulseProfile', '/pulse/profile/Bitfinex', true, 'Bitfinex')
75+
testMethod('addPulse', '/auth/w/pulse/add', false)
7576
})
7677
})

0 commit comments

Comments
 (0)