1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 15:50:28 +01:00
metamask-extension/ui/components/app/user-preferenced-currency-input/user-preferenced-currency-input.test.js

21 lines
631 B
JavaScript
Raw Normal View History

import React from 'react';
import configureMockStore from 'redux-mock-store';
import { renderWithProvider } from '../../../../test/lib/render-helpers';
import mockState from '../../../../test/data/mock-state.json';
import UserPreferencedCurrencyInput from '.';
describe('UserPreferencedCurrencyInput Component', () => {
describe('rendering', () => {
it('should match snapshot', () => {
const mockStore = configureMockStore()(mockState);
const { container } = renderWithProvider(
<UserPreferencedCurrencyInput />,
mockStore,
);
expect(container).toMatchSnapshot();
});
});
});