1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/ui/components/app/user-preferenced-token-input/user-preferenced-token-input.test.js
Thomas Huang 8075a39567
Continue converting tests from enzyme to @testing-library/react (#16175)
* Add transaction activity log component

* Remove duplicate tx activity log snapshot.

* Convert tx breakdown row to tlr.

* Convert tx status component to tlr.

* Convert User Preferenced Currency Display test to tlr.

* Consolidate and convert user-preferenced-currency-input.test.js to tlr.

* Consolidate and convert user-preferenced-token-input test to tlr.
2022-10-20 11:20:49 -07:00

27 lines
749 B
JavaScript

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