<commit_before>/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
/* eslint-env jest */

import React from 'react';
import renderer from 'react-test-renderer';
import Header from '../Header';

const currentRoomName = 'VIDEO';
const numberOfMembers = 5;

test('<Header /> renders correctly', () => {
  const dispatchSpy = jest.fn();
  const rendered = renderer.create(
    <Header
      currentRoomName={currentRoomName}
      numberOfMembers={numberOfMembers}
      dispatch={dispatchSpy}
    />
  );
  expect(rendered.toJSON()).toMatchSnapshot();
});<commit_msg>change react-redux mock for Header tests<commit_after>/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
/* eslint-env jest */

import React from 'react';
import renderer from 'react-test-renderer';
import Header from '../Header';

const currentRoomName = 'VIDEO';
const numberOfMembers = 5;

jest.mock('react-redux', () => ({
  connect() {
    return elm => elm;
  },
}));

test('<Header /> renders correctly', () => {
  const dispatchSpy = jest.fn();
  const rendered = renderer.create(
    <Header
      currentRoomName={currentRoomName}
      numberOfMembers={numberOfMembers}
      dispatch={dispatchSpy}
    />
  );
  expect(rendered.toJSON()).toMatchSnapshot();
});
{'fraction_non_alphanumeric': 0.16039907904834996, 'fraction_numerical': 0.0015349194167306216, 'mean_word_length': 4.258064516129032, 'pattern_counts': {'":': 2, '<': 7, '<?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': '4614693', 'n_tokens_mistral': 392, 'n_tokens_neox': 386, 'n_words': 90}