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

import {AppProviderComponent as AppProvider} from '../../../providers';
import {EnterCodeComponent as EnterCode} from './enter-code.component';
import React from 'react';

describe('EnterCode Component', () => {
    it('Render without crash and correctly', () => {
        const tree = renderer.create(
            <AppProvider>
                <EnterCode fields={4} onComplete={() => {}} />
            </AppProvider>,
        );
        expect(tree).toMatchSnapshot();
    });
});
