import '@testing-library/jest-dom';
import renderer from 'react-test-renderer';
import React from 'react';

import {AppProviderComponent as AppProvider} from '../../../providers';
import {DotLineComponent as DotLine} from './dot-line.component';

describe('DotLine Component', () => {
    it('Render without crash and correctly', () => {
        const tree = renderer.create(
            <AppProvider>
                <DotLine
                    title='Setting'
                    subtitle='Start Date: 1402/02/01'
                    variant='normal'
                />
            </AppProvider>,
        );
        expect(tree).toMatchSnapshot();
    });
});
