import React from 'react';

import InputPassword from './index';

const mockCallback = jest.fn();
const data = {
  InputProps: {
    name: 'password',
    type: 'password',
    label: 'Password',
    required: true,
    onChange: mockCallback,
  },
};

describe('InputPassword', () => {
  const defaultElement = <InputPassword {...data} />;
  let wrapper;

  beforeEach(() => {
    wrapper = shallow(defaultElement);
  });

  it('should render correctly', () => {
    expect(wrapper).toMatchSnapshot();
  });
});
