8a829964be
* Add ag-grid * Add lazy loaded ag-grid component * Add theme context, move VegaWallet to separate lib * Fix trading app cypress configuration * Lazy load ag-grid theme css files * Encapsulate theme switch hook
27 lines
669 B
TypeScript
27 lines
669 B
TypeScript
import React from 'react';
|
|
import { render } from '@testing-library/react';
|
|
|
|
import Index from '../pages/index.page';
|
|
import { VegaWalletContext } from '@vegaprotocol/wallet';
|
|
|
|
describe('Index', () => {
|
|
it('should render successfully', () => {
|
|
const { baseElement } = render(
|
|
<VegaWalletContext.Provider
|
|
value={{
|
|
keypair: null,
|
|
keypairs: null,
|
|
connect: jest.fn(),
|
|
disconnect: jest.fn(),
|
|
selectPublicKey: jest.fn(),
|
|
connector: null,
|
|
sendTx: jest.fn(),
|
|
}}
|
|
>
|
|
<Index />
|
|
</VegaWalletContext.Provider>
|
|
);
|
|
expect(baseElement).toBeTruthy();
|
|
});
|
|
});
|