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.
22 lines
650 B
22 lines
650 B
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();
|
|
});
|
|
});
|
|
|