You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
774 B
30 lines
774 B
2 years ago
|
import React from 'react';
|
||
|
import configureMockStore from 'redux-mock-store';
|
||
|
import { renderWithProvider } from '../../../../test/lib/render-helpers';
|
||
|
import UserPreferencedCurrencyDisplay from '.';
|
||
|
|
||
|
describe('UserPreferencedCurrencyDisplay Component', () => {
|
||
|
describe('rendering', () => {
|
||
|
const mockState = {
|
||
|
metamask: {
|
||
|
provider: {
|
||
|
chainId: '0x99',
|
||
|
},
|
||
|
preferences: {
|
||
|
useNativeCurrencyAsPrimaryCurrency: true,
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
const mockStore = configureMockStore()(mockState);
|
||
|
|
||
|
it('should match snapshot', () => {
|
||
|
const { container } = renderWithProvider(
|
||
|
<UserPreferencedCurrencyDisplay />,
|
||
|
mockStore,
|
||
|
);
|
||
|
|
||
|
expect(container).toMatchSnapshot();
|
||
|
});
|
||
|
});
|
||
|
});
|