Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit c9ac0cd

Browse files
fix: fix broken testcase
1 parent bf68b6f commit c9ac0cd

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/hooks/useSubscription/__tests__/useSubscription.test.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,22 @@ describe('Use WS', () => {
206206
},
207207
});
208208

209-
expect(result.current.error).toEqual({ message: 'this is an error' });
209+
expect(result.current.error).toEqual({
210+
echo_req: {
211+
base_currency: 'USD',
212+
exchange_rates: 1,
213+
req_id: 1,
214+
subscribe: 1,
215+
},
216+
error: {
217+
message: 'this is an error',
218+
},
219+
msg_type: 'exchange_rates',
220+
req_id: 1,
221+
subscription: {
222+
id: '2f39f7e7-d986-33f2-080a-b0ee50cfb85c',
223+
},
224+
});
210225
expect(result.current.is_loading).toBeFalsy();
211226
});
212227
});

0 commit comments

Comments
 (0)