1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-03 22:54:29 +01:00
metamask-extension/ui/components/app/transaction-breakdown/transaction-breakdown-row/transaction-breakdown-row.component.test.js
2022-11-15 14:22:08 -03:30

22 lines
599 B
JavaScript

import React from 'react';
import { renderWithProvider } from '../../../../../test/lib/render-helpers';
import Button from '../../../ui/button';
import TransactionBreakdownRow from '.';
describe('TransactionBreakdownRow Component', () => {
it('should match snapshot', () => {
const props = {
title: 'test',
className: 'test-class',
};
const { container } = renderWithProvider(
<TransactionBreakdownRow {...props}>
<Button onClick={() => undefined}>Button</Button>
</TransactionBreakdownRow>,
);
expect(container).toMatchSnapshot();
});
});