1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 04:46:10 +01:00
metamask-extension/ui/components/app/ledger-instruction-field/ledger-instruction-field.test.js

29 lines
747 B
JavaScript
Raw Normal View History

import React from 'react';
import configureMockStore from 'redux-mock-store';
import { renderWithProvider } from '../../../../test/lib/render-helpers';
import LedgerInstructionField from '.';
describe('LedgerInstructionField Component', () => {
const mockStore = {
appState: {
ledgerWebHidConnectedStatus: 'notConnected',
},
metamask: {
ledgerTransportType: 'webhid',
},
};
describe('rendering', () => {
it('should render properly with data instruction', () => {
const store = configureMockStore()(mockStore);
const { container } = renderWithProvider(
<LedgerInstructionField showDataInstruction />,
store,
);
expect(container).toMatchSnapshot();
});
});
});