1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-05 15:35:46 +01:00
metamask-extension/ui/components/app/asset-list/asset-list.test.js

23 lines
650 B
JavaScript
Raw Normal View History

import React from 'react';
import { screen } from '@testing-library/react';
import { renderWithProvider } from '../../../../test/jest';
import configureStore from '../../../store/store';
import mockState from '../../../../test/data/mock-state.json';
import AssetList from './asset-list';
const render = () => {
const store = configureStore({
metamask: {
...mockState.metamask,
},
});
return renderWithProvider(<AssetList />, store);
};
describe('AssetList', () => {
it('renders AssetList component and shows Refresh List text', () => {
render();
expect(screen.getByText('Refresh list')).toBeInTheDocument();
});
});