vega-frontend-monorepo/apps/trading/specs/index.spec.tsx

26 lines
647 B
TypeScript
Raw Normal View History

import React from 'react';
import { render } from '@testing-library/react';
import Index from '../pages/index.page';
2022-02-28 22:29:05 +00:00
import { VegaWalletContext } from '@vegaprotocol/react-helpers';
describe('Index', () => {
it('should render successfully', () => {
2022-02-28 22:29:05 +00:00
const { baseElement } = render(
<VegaWalletContext.Provider
value={{
keypair: null,
keypairs: null,
connect: jest.fn(),
disconnect: jest.fn(),
selectPublicKey: jest.fn(),
connector: null,
}}
>
<Index />
</VegaWalletContext.Provider>
);
expect(baseElement).toBeTruthy();
});
});