<commit_before>'use strict';

import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import Pomodoro from './../Pomodoro';

import { assert } from 'chai';

describe('Test Pomodoro Component', () => {
  var component; 

  beforeEach(function() {
    component = TestUtils.renderIntoDocument(
      <Pomodoro />
    );
  });

  it('verify the default state are correctly', () => {
    assert.equal(component.state.time, 1500);
    assert.equal(component.state.play, false);
    assert.equal(component.state.timeType, 1500);
    assert.equal(component.state.title, '25:00 | Pomodoro timer');
  });
});<commit_msg>The default options of notification should be unchecked<commit_after>'use strict';

import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import Pomodoro from './../Pomodoro';

import { assert } from 'chai';

describe('Test Pomodoro Component', () => {
  var component; 

  beforeEach(() => {
    component = TestUtils.renderIntoDocument(
      <Pomodoro />
    );
  });

  it('verify the default state are correctly', () => {
    assert.isFalse(component.state.play);
    assert.equal(component.state.time, 1500);
    assert.equal(component.state.timeType, 1500);
    assert.equal(component.state.title, '25:00 | Pomodoro timer');
  });

  it('the options of notification should be unchecked', () => {
    assert.isFalse(component.refs.audio.checked);
    assert.isFalse(component.refs.vibrate.checked);
    assert.isFalse(component.refs.notification.checked);
  });
});
{'fraction_non_alphanumeric': 0.15201005025125627, 'fraction_numerical': 0.01507537688442211, 'mean_word_length': 4.0894568690095845, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5707307', 'n_tokens_mistral': 511, 'n_tokens_neox': 474, 'n_words': 110}