mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
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();
|
||
|
});
|
||
|
});
|