<commit_before>/* eslint-env jasmine */
<% if (modules === 'webpack') { -%>
const React = require('react');
const TestUtils = require('react/lib/ReactTestUtils');
const Hello = require('./hello');
<% } -%>
<% if (modules === 'systemjs') { -%>
import React from 'react';
import TestUtils from 'react/lib/ReactTestUtils';
import Hello from './hello';
<% } -%>
<% if (modules === 'inject') { -%>
const TestUtils = React.addons.TestUtils;
<% } -%>

describe('hello component', () => {
  it('should render hello world', () => {
    const hello = TestUtils.renderIntoDocument(<Hello/>);
    const h1 = TestUtils.findRenderedDOMComponentWithTag(hello, 'h1');
    expect(h1.textContent).toEqual('Hello world!');
  });<commit_msg>hello.spec.js written in ES6<commit_after>/* eslint-env jasmine */
<% if (modules === 'webpack') { -%>
var React = require('react');
var TestUtils = require('react/lib/ReactTestUtils');
var Hello = require('./hello');
<% } -%>
<% if (modules === 'systemjs') { -%>
import React from 'react';
import TestUtils from 'react/lib/ReactTestUtils';
import Hello from './hello';
<% } -%>
<% if (modules === 'inject') { -%>
var TestUtils = React.addons.TestUtils;
<% } -%>

describe('hello component', function () {
  it('should render hello world', function () {
    var hello = TestUtils.renderIntoDocument(<Hello/>);
    var h1 = TestUtils.findRenderedDOMComponentWithTag(hello, 'h1');
    expect(h1.textContent).toEqual('Hello world!');
  });
{'fraction_non_alphanumeric': 0.2059025394646534, 'fraction_numerical': 0.004804392587508579, 'mean_word_length': 4.651162790697675, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '6979704', 'n_tokens_mistral': 481, 'n_tokens_neox': 464, 'n_words': 107}