<commit_before>var Help = require('./test-helper.js');

describe('Hello component:', () => {

    var component;
    beforeEach(() => {
        component = Help.bootstrapComponent(require('../app/js/components/hello'));
    });

    it('should exist', () => {
        expect(typeof component).toBe('object');
    });

    it('should be able to bootstrap a component', () => {
        expect(component.name).toBe('Max');
    });

    it('should be able to call a method on a bootstraped component', () => {
        expect(component.name).toBe('Max');
        component.changeName();
        expect(component.name).toBe('Carina');
    });

});
<commit_msg>Formatting<commit_after>var Help = require('./test-helper.js');

describe('Hello component:', () => {

    var component;
    beforeEach(() => {
        component =
            Help.bootstrapComponent(require('../app/js/components/hello'));
    });

    it('should exist', () => {
        expect(typeof component).toBe('object');
    });

    it('should be able to bootstrap a component', () => {
        expect(component.name).toBe('Max');
    });

    it('should be able to call a method on a bootstraped component', () => {
        expect(component.name).toBe('Max');
        component.changeName();
        expect(component.name).toBe('Carina');
    });

});

{'fraction_non_alphanumeric': 0.19134396355353075, 'fraction_numerical': 0.0, 'mean_word_length': 2.8202898550724638, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '5777939', 'n_tokens_mistral': 374, 'n_tokens_neox': 359, 'n_words': 72}