Skip to content

Commit 2f2741f

Browse files
committed
test: sync tests
1 parent bc9ba4c commit 2f2741f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/typink/src/hooks/__tests__/useWatchContractEvent.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('useWatchContractEvent', () => {
4242

4343
vi.mocked(useTypink).mockReturnValue({
4444
client: mockClient,
45-
sub: mockSub,
45+
subscribeSystemEvents: mockSub,
4646
} as any);
4747
});
4848

@@ -96,7 +96,7 @@ describe('useWatchContractEvent', () => {
9696
expect(result.current).toBeDefined();
9797
});
9898

99-
mockSub.mockImplementation(result.current.sub);
99+
mockSub.mockImplementation(result.current.subscribeSystemEvents);
100100

101101
const mockCallback = vi.fn();
102102
renderHook(() => useWatchContractEvent(mockContract, 'Transfer', mockCallback));

0 commit comments

Comments
 (0)