Skip to content

Commit d39facf

Browse files
danielJacobPlaster
authored andcommitted
adding new public pulse profile resource tests
1 parent 9ceefd9 commit d39facf

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/rest2.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ const {
3434
StatusMessagesDeriv,
3535
Notification,
3636
Login,
37-
ChangeLog
37+
ChangeLog,
38+
PublicPulseProfile
3839
} = require('bfx-api-node-models')
3940

4041
const RESTv1 = require('./rest1')

test/lib/rest-2-integration.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ describe('RESTv2 integration (mock server) tests', () => {
109109
['stats', 'stats.key.context', ['key', 'context']],
110110
['candles', 'candles.trade:30m:tBTCUSD.hist', [{ timeframe: '30m', symbol: 'tBTCUSD', section: 'hist' }]],
111111
['statusMessages', 'status_messages.deriv.ALL', ['deriv', ['ALL']]],
112+
['publicPulseProfile', 'public_pulse_profile.nickname', ['nickname']],
112113

113114
// private
114115
['alertList', 'alerts.price', ['price']],

test/lib/rest-2-unit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@ describe('RESTv2', () => {
7070
testMethod('futures', '/conf/pub:list:pair:futures', true)
7171
testMethod('ledgers', '/auth/r/ledgers/hist', false)
7272
testMethod('ledgers', '/auth/r/ledgers/USD/hist', false, 'USD')
73+
testMethod('publicPulseProfile', '/pulse/profile/Bitfinex', true, 'Bitfinex')
7374
})
7475
})

0 commit comments

Comments
 (0)