2021-02-04 19:15:23 +01:00
|
|
|
import React from 'react';
|
2022-10-20 20:20:49 +02:00
|
|
|
import { renderWithProvider } from '../../../../../test/lib/render-helpers';
|
2021-03-16 22:00:08 +01:00
|
|
|
import Button from '../../../ui/button';
|
2022-10-20 20:20:49 +02:00
|
|
|
import TransactionBreakdownRow from '.';
|
2018-08-31 21:36:07 +02:00
|
|
|
|
2021-04-15 20:01:46 +02:00
|
|
|
describe('TransactionBreakdownRow Component', () => {
|
2022-10-20 20:20:49 +02:00
|
|
|
it('should match snapshot', () => {
|
|
|
|
const props = {
|
|
|
|
title: 'test',
|
|
|
|
className: 'test-class',
|
|
|
|
};
|
2018-08-31 21:36:07 +02:00
|
|
|
|
2022-10-20 20:20:49 +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>,
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-08-31 21:36:07 +02:00
|
|
|
|
2022-10-20 20:20:49 +02:00
|
|
|
expect(container).toMatchSnapshot();
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
|
|
|
});
|