<commit_before>import React from 'react';
import {shallow} from 'enzyme';
import {expect} from 'chai';
import TextInput from '../lib/text-input';

describe('Stateful Text Input', function () {
    let textInput;

    beforeEach(function () {
        textInput = shallow(<TextInput/>);
    });

    it('should be a text input', function () {
        expect(textInput.type()).equals('input');
        expect(textInput.props().type).equals('text');
    });
});<commit_msg>red - assert text input is empty by default<commit_after>import React from 'react';
import {shallow} from 'enzyme';
import {expect} from 'chai';
import TextInput from '../lib/text-input';

describe('Stateful Text Input', function () {
    let textInput;

    beforeEach(function () {
        textInput = shallow(<TextInput/>);
    });

    it('should be a text input', function () {
        expect(textInput.type()).equals('input');
        expect(textInput.props().type).equals('text');
    });

    it('should be empty by default', function () {
        expect(textInput.props().value).equals('');
    });
});
{'fraction_non_alphanumeric': 0.17314814814814813, 'fraction_numerical': 0.0, 'mean_word_length': 3.504166666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2242839', 'n_tokens_mistral': 314, 'n_tokens_neox': 302, 'n_words': 80}