<commit_before>jest.dontMock('../components/ApiKey.jsx');
import React from 'react';
import {shallow} from 'enzyme';
import ApiKey from '../components/ApiKey';
import ReactTestUtils from 'react-addons-test-utils'

it('calls saveAPIKey on click', () => {
  // var setApiKey = jest.fn();
  // var Trello = jest.fn();
  // const component = shallow(<ApiKey apiKey={"<KEY>"} Trello={Trello} setApiKey={setApiKey} />);
  // component.instance().saveAPIKey = jest.fn();
  // const button = component.find('#check_api_key').first()
  // button.simulate('click');
  // expect(component.instance().saveAPIKey).toBeCalled();
});<commit_msg>Re-enable excluded test<commit_after>jest.dontMock('../components/ApiKey.jsx');
import React from 'react';
import {shallow} from 'enzyme';
import ApiKey from '../components/ApiKey';
import ReactTestUtils from 'react-addons-test-utils'

it('calls saveAPIKey on click', () => {
  var setApiKey = jest.fn();
  var Trello = jest.fn();
  const component = shallow(<ApiKey apiKey={"<KEY>"} Trello={Trello} setApiKey={setApiKey} />);
  component.instance().saveAPIKey = jest.fn();
  const button = component.find('#check_api_key').first()
  button.simulate('click');
  expect(component.instance().saveAPIKey).toBeCalled();
});
{'fraction_non_alphanumeric': 0.18975180144115292, 'fraction_numerical': 0.0, 'mean_word_length': 5.157635467980295, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5810317', 'n_tokens_mistral': 408, 'n_tokens_neox': 403, 'n_words': 82}