<commit_before>import React from 'react';
import renderer from 'react-test-renderer';
import configureStore from 'redux-mock-store' // ES6 modules
import { Provider } from 'react-redux';
import Seguidor from '../Seguidor';

const middlewares = []
const mockStore = configureStore(middlewares)

jest.mock('react-dom');
jest.mock('antd');

describe('<Seguidor />', () => {

  it('Renders correctly', () => {

    const materias = [{ cursada: false, final: false, id: '416', name: 'Materia 1', status: 1, year: '0' }, { cursada: false, final: false, id: '415', name: 'Materia 2', status: 1, year: '0' }];

    const correlativas = [{
      m: 1,
      d: {
        rCC: ['1', '2'],
        rFF: ['1', '2'],
        hCC: ['15', '71', '17', '72', '75', '20', '21', '22', '23', '24', '25', '26', '33'],
        hFF: ['15', '71', '17', '72', '75', '20', '21', '22', '23', '24', '25', '26', '33'],
        hFC: ['27', '73', '446', '447']
      }
    }];

    const estados = [{
      id: 416,
      status: 2
    },
    {
      id: 415,
      status: 3
    }
    ];

    const seguidorState = {
      materias,
      correlativas,
      estados,
      isFetching: false,
      error: false
    };

    const onLoadFn = jest.fn();
    const updateEstadoFn = jest.fn();

    const initialState = { seguidor: seguidorState };
    const store = mockStore(initialState);

    const SeguidorElement = (
      <Provider store={store} >
        <Seguidor
          onLoad={onLoadFn}
          updateEstado={updateEstadoFn}
          materias={materias}
          estados={estados}
          correlativas={correlativas}
        />
      </Provider>
    );

    const tree = renderer.create(<SeguidorElement />).toJSON();

    expect(tree).toMatchSnapshot();

  })

});
<commit_msg>Arreglar error surgido al intentar apacigüar linter.<commit_after>import React from 'react';
import renderer from 'react-test-renderer';
import configureStore from 'redux-mock-store' // ES6 modules
import { Provider } from 'react-redux';
import Seguidor from '../Seguidor';

const middlewares = []
const mockStore = configureStore(middlewares)

jest.mock('react-dom');
jest.mock('antd');

describe('<Seguidor />', () => {

  it('Renders correctly', () => {

    const materias = [{ cursada: false, final: false, id: '416', name: 'Materia 1', status: 1, year: '0' }, { cursada: false, final: false, id: '415', name: 'Materia 2', status: 1, year: '0' }];

    const correlativas = [{
      m: 1,
      d: {
        rCC: ['1', '2'],
        rFF: ['1', '2'],
        hCC: ['15', '71', '17', '72', '75', '20', '21', '22', '23', '24', '25', '26', '33'],
        hFF: ['15', '71', '17', '72', '75', '20', '21', '22', '23', '24', '25', '26', '33'],
        hFC: ['27', '73', '446', '447']
      }
    }];

    const estados = [{
      id: 416,
      status: 2
    },
    {
      id: 415,
      status: 3
    }
    ];

    const seguidorState = {
      materias,
      correlativas,
      estados,
      isFetching: false,
      error: false
    };

    const onLoadFn = jest.fn();
    const updateEstadoFn = jest.fn();

    const initialState = { seguidor: seguidorState };
    const store = mockStore(initialState);

    const SeguidorElement = () => (
      <Provider store={store} >
        <Seguidor
          onLoad={onLoadFn}
          updateEstado={updateEstadoFn}
          materias={materias}
          estados={estados}
          correlativas={correlativas}
        />
      </Provider>
    );

    const tree = renderer.create(<SeguidorElement />).toJSON();

    expect(tree).toMatchSnapshot();

  })

});

{'fraction_non_alphanumeric': 0.1889168765743073, 'fraction_numerical': 0.04925832633641198, 'mean_word_length': 2.5316205533596836, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 18, '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': '5005020', 'n_tokens_mistral': 1360, 'n_tokens_neox': 1231, 'n_words': 310}