<commit_before>describe("Input Tests", function() {

    beforeEach(function() {
        var result = yr.run('main', {input: true});
        $('.content').html(result);

        nb.init();
        this.input = nb.find('input');
    });

    afterEach(function() {
        delete this.input;
    });

    describe("Init", function() {
        it("should be inited", function() {
            expect(this.input).to.not.equal(null);
        });
    });

    describe('#getType()', function() {
        it('should return input type', function() {
            expect(this.input.getType()).to.be.equal('input');
        });
    });

    describe("#focus()", function() {<commit_msg>Unit-Test for task #163<commit_after>describe("Input Tests", function() {

    beforeEach(function() {
        var result = yr.run('main', {input: true});
        $('.content').html(result);

        nb.init();
        this.input = nb.find('input');
    });

    afterEach(function() {
        delete this.input;
    });

    describe("Init", function() {
        it("should be inited", function() {
            expect(this.input).to.not.equal(null);
        });
    });

    describe("Events", function() {
        it("should fire nb-input_change event", function() {
            var result = false;

            this.input.setValue("Zzzzap!");
            this.input.on('nb-input_change', function(){
                result = true;
            });

            this.input.$control.trigger('change');

            expect(result).to.be.ok();
        });
    });

    describe('#getType()', function() {
        it('should return input type', function() {
            expect(this.input.getType()).to.be.equal('input');
        });
    });

    describe("#focus()", function() {
{'fraction_non_alphanumeric': 0.19131924614505996, 'fraction_numerical': 0.0017133066818960593, 'mean_word_length': 2.122994652406417, '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': '5424180', 'n_tokens_mistral': 511, 'n_tokens_neox': 490, 'n_words': 86}