<commit_before>// @flow
import React from 'react'
import {mount} from 'enzyme'
import {mountToJson} from 'enzyme-to-json'

import DatePicker from '../date-picker'

describe('Components > DatePicker', () => {
  it('should render a DatePicker properly', () => {
    const tree = mount(<DatePicker
      onChange={jest.fn()}
      value='Tue Oct 23 2018 21:02:36 GMT+0800'
    />)

    expect(tree.find('input').prop('value')).toBe('10/23/2018')
  })
})<commit_msg>test(date-picker): Fix lint error in date-picker<commit_after>// @flow
import React from 'react'
import {mount} from 'enzyme'

import DatePicker from '../date-picker'

describe('Components > DatePicker', () => {
  it('should render a DatePicker properly', () => {
    const tree = mount(<DatePicker
      onChange={jest.fn()}
      value='Tue Oct 23 2018 21:02:36 GMT+0800'
    />)

    expect(tree.find('input').prop('value')).toBe('10/23/2018')
  })
})
{'fraction_non_alphanumeric': 0.18231441048034935, 'fraction_numerical': 0.05240174672489083, 'mean_word_length': 3.9301075268817205, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1773602', 'n_tokens_mistral': 338, 'n_tokens_neox': 294, 'n_words': 73}