<commit_before>describe('DateInput instance', function () {
    'use strict';

    var assert = require('assert'),
        sinon = require('sinon'),
        React = require('react'),
        TestUtils = require('react/addons').addons.TestUtils,
        massert = require('./helpers/massert'),
        DateInput = require('../src/DateInput');

    describe('HTML', function () {
        var element;

        beforeEach(function () {
            element = TestUtils.renderIntoDocument(
                React.createElement(DateInput, {value: '2014-09-29'})
            ).getDOMNode();
        });

        it('is an input', function () {
            assert.strictEqual(element.tagName, 'INPUT');
        });

        it('input type is date', function () {
            assert.strictEqual(element.getAttribute('type'), 'date');
        });

        it('renders the property value passed on construction', function () {
            assert.strictEqual(element.getAttribute('value'), '2014-09-29');
        });
<commit_msg>Fix a PropType warning<commit_after>describe('DateInput instance', function () {
    'use strict';

    var assert = require('assert'),
        sinon = require('sinon'),
        React = require('react'),
        TestUtils = require('react/addons').addons.TestUtils,
        massert = require('./helpers/massert'),
        DateInput = require('../src/DateInput');

    describe('HTML', function () {
        var element;

        beforeEach(function () {
            element = TestUtils.renderIntoDocument(
                React.createElement(DateInput, {value: '2014-09-29', onChange: function () {}})
            ).getDOMNode();
        });

        it('is an input', function () {
            assert.strictEqual(element.tagName, 'INPUT');
        });

        it('input type is date', function () {
            assert.strictEqual(element.getAttribute('type'), 'date');
        });

        it('renders the property value passed on construction', function () {
            assert.strictEqual(element.getAttribute('value'), '2014-09-29');
        });

{'fraction_non_alphanumeric': 0.1548137397194001, 'fraction_numerical': 0.015481373971940009, 'mean_word_length': 2.357142857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7023453', 'n_tokens_mistral': 558, 'n_tokens_neox': 532, 'n_words': 109}