Skip to content

Commit 7954256

Browse files
committed
fix: add missing tests
1 parent 5f4af24 commit 7954256

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

test/mappers.test.ts

+32-1
Original file line numberDiff line numberDiff line change
@@ -9163,6 +9163,19 @@ test('map bitget messages', () => {
91639163
arg: { instType: 'SPOT', channel: 'books1', instId: 'BTCUSDC' },
91649164
data: [{ asks: [['72377.25', '0.00408']], bids: [['72354.67', '1.16460']], checksum: 0, ts: '1730332859984' }],
91659165
ts: 1730332859985
9166+
},
9167+
{
9168+
action: 'snapshot',
9169+
arg: { instType: 'SPOT', channel: 'books15', instId: 'MANTAUSDT' },
9170+
data: [
9171+
{
9172+
asks: [['0.7146', '7.03']],
9173+
bids: [['0.7139', '20.98']],
9174+
checksum: 0,
9175+
ts: '1730963759993'
9176+
}
9177+
],
9178+
ts: 1730963759994
91669179
}
91679180
]
91689181
const mapper = createMapper('bitget', new Date('2024-08-23T00:00:00.4985250Z'))
@@ -9282,9 +9295,27 @@ test('map bitget-futures messages', () => {
92829295
},
92839296
{
92849297
action: 'snapshot',
9285-
arg: { instType: 'SPOT', channel: 'books1', instId: 'AQTUSDT' },
9298+
arg: { instType: 'USDT-FUTURES', channel: 'books1', instId: 'AQTUSDT' },
92869299
data: [{ asks: [['1.4138', '4.58']], bids: [], checksum: 0, ts: '1730860330169' }],
92879300
ts: 1730860330170
9301+
},
9302+
{
9303+
action: 'snapshot',
9304+
arg: { instType: 'USDT-FUTURES', channel: 'books15', instId: 'YGGUSDT' },
9305+
data: [
9306+
{
9307+
asks: [
9308+
['0.47256', '641.4443'],
9309+
['0.47257', '3074.3765'],
9310+
9311+
['0.47377', '2677.5600']
9312+
],
9313+
bids: [['0.47242', '18.7835']],
9314+
checksum: 0,
9315+
ts: '1730963759972'
9316+
}
9317+
],
9318+
ts: 1730963759998
92889319
}
92899320
]
92909321

0 commit comments

Comments
 (0)