mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
b8b94c2c1f
* 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
22 lines
615 B
JavaScript
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();
|
|
});
|
|
});
|