1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/multichain/select-action-modal-item/select-action-item.test.js

22 lines
627 B
JavaScript
Raw Normal View History

import React from 'react';
import { render } from '@testing-library/react';
import { IconName } from '../../component-library';
import { SelectActionModalItem } from '.';
describe('SelectActionModalItem', () => {
it('should render correctly', () => {
const props = {
showIcon: true,
primaryText: 'Buy',
secondaryText: 'Buy crypto with MetaMask',
actionIcon: IconName.Add,
};
const { container, getByTestId } = render(
<SelectActionModalItem {...props} />,
);
expect(container).toMatchSnapshot();
expect(getByTestId('select-action-modal-item')).toBeDefined();
});
});