A Metamask fork with Infura removed and default networks editable
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.
 
 
 
 
 
ciphermask/ui/components/app/transaction-list/transaction-list.test.js

22 lines
714 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 TransactionList from './transaction-list.component';
const render = () => {
const store = configureStore({
metamask: {
...mockState.metamask,
},
});
return renderWithProvider(<TransactionList />, store);
};
describe('TransactionList', () => {
it('renders TransactionList component and shows You have no transactions text', () => {
render();
expect(screen.getByText('You have no transactions')).toBeInTheDocument();
});
});