import React from 'react'; import { create } from 'react-test-renderer'; import { InputDate } from '..'; test('Default', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('With ID', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('Required', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('Label', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('Placeholder', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('disabled', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('disabled & readOnly', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('readOnly', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); });