1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 06:07:06 +01:00
metamask-extension/ui/components/app/transaction-breakdown/transaction-breakdown-row/transaction-breakdown-row.component.test.js

22 lines
599 B
JavaScript
Raw Normal View History

import React from 'react';
import { renderWithProvider } from '../../../../../test/lib/render-helpers';
import Button from '../../../ui/button';
import TransactionBreakdownRow from '.';
2018-08-31 21:36:07 +02:00
describe('TransactionBreakdownRow Component', () => {
it('should match snapshot', () => {
const props = {
title: 'test',
className: 'test-class',
};
2018-08-31 21:36:07 +02:00
const { container } = renderWithProvider(
<TransactionBreakdownRow {...props}>
2020-11-03 00:41:28 +01:00
<Button onClick={() => undefined}>Button</Button>
2018-08-31 21:36:07 +02:00
</TransactionBreakdownRow>,
);
2018-08-31 21:36:07 +02:00
expect(container).toMatchSnapshot();
});
});