fix tests

This commit is contained in:
tiagosiebler
2022-09-16 14:21:11 +01:00
parent 08f0914740
commit f4a569dcba
7 changed files with 27 additions and 47 deletions

View File

@@ -81,14 +81,6 @@ describe('Private Inverse Perps Websocket Client', () => {
// const wsUpdatePromise = waitForSocketEvent(wsClient, 'update');
const wsTopic = 'wallet';
expect(wsResponsePromise).resolves.toMatchObject({
request: {
args: [wsTopic],
op: 'subscribe',
},
success: true,
});
// No easy way to trigger a private event (other than executing trades)
// expect(wsUpdatePromise).resolves.toMatchObject({
// topic: wsTopic,
@@ -97,7 +89,13 @@ describe('Private Inverse Perps Websocket Client', () => {
wsClient.subscribe(wsTopic);
await Promise.all([wsResponsePromise]);
expect(await wsResponsePromise).toMatchObject({
request: {
args: [wsTopic],
op: 'subscribe',
},
success: true,
});
});
});
});