import { render } from 'enzyme/build';
import React from 'react';
import { TotalPrice } from './TotalPrice';

describe('Components/TotalPrice', () => {
    it('renders correctly with default props', () => {
        const tree = render(<TotalPrice />);
        expect(tree).toMatchSnapshot();
    });
    it('renders without divider', () => {
        const tree = render(<TotalPrice showTopDivider={false} />);
        expect(tree).toMatchSnapshot();
    });
    it('renders total price and tax note', () => {
        const tree = render(<TotalPrice totalPrice={'113 €'} taxNote={'Incl. VAT'} />);
        expect(tree).toMatchSnapshot();
    });
});
