1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
metamask-extension/ui/components/multichain/balance-overview/balance-overview.test.js
Nidhi Kumari b8b94c2c1f
UX Multichain: Added balance-overview component (#20528)
* added balance-overview component

* updated balance overview component to use Currency utility props

* added MULTICHAIN feature flag

* lint fix

* lint fix

* lint fix

* updated ternary operators
2023-08-29 22:07:23 +05:30

22 lines
615 B
JavaScript

import React from 'react';
import configureStore from '../../../store/store';
import { renderWithProvider } from '../../../../test/lib/render-helpers';
import mockState from '../../../../test/data/mock-state.json';
import { BalanceOverview } from '.';
const render = () => {
const store = configureStore({
metamask: {
...mockState.metamask,
},
});
return renderWithProvider(<BalanceOverview />, store);
};
describe('Balance Overview and Portfolio for Tokens', () => {
it('should match snapshot', () => {
const { container } = render();
expect(container).toMatchSnapshot();
});
});