* chore: break down components to smaller chunks for better performance * chore: break down components to smaller chunks for better performance * chore: break down components to smaller chunks for better performance - fix failing tests * chore: break down components to smaller chunks for better performance - adjust token app cases * chore: break down components to smaller chunks for better performance - small fixes * chore: break down components to smaller chunks for better performance - small fixes * chore: break down components to smaller chunks for better performance - small fixes * chore: break down components to smaller chunks for better performance - small fixes * chore: break down components to smaller chunks for better performance - add nwe store for pageTitle * chore: break down components to smaller chunks for better performance - sm fix * chore: break down components to smaller chunks for better performance - sm fix * chore: break down components to smaller chunks for better performance - sm imprv * chore: break down components to smaller chunks for better performance - change prop names * chore: break down components to smaller chunks for better performance - fix some test * chore: break down components to smaller chunks for better performance - change cypress url * chore: break down components to smaller chunks for better perf - set back redundant changes * chore: resolve conflicts Co-authored-by: maciek <maciek@vegaprotocol.io>
16 lines
595 B
TypeScript
16 lines
595 B
TypeScript
import { renderHook, act } from '@testing-library/react';
|
|
import useLocalValues from './use-local-values';
|
|
|
|
describe('local values hook', () => {
|
|
it('state of wallet dialog should be properly handled', () => {
|
|
const setTheme = jest.fn();
|
|
const { result } = renderHook(() => useLocalValues('light', setTheme));
|
|
expect(result.current.vegaWalletDialog).toBeDefined();
|
|
expect(result.current.vegaWalletDialog.manage).toBe(false);
|
|
act(() => {
|
|
result.current.vegaWalletDialog.setManage(true);
|
|
});
|
|
expect(result.current.vegaWalletDialog.manage).toBe(true);
|
|
});
|
|
});
|