<commit_before>import React from 'react';
import chai, { expect } from 'chai';
import chaiEnzyme from 'chai-enzyme';
import { shallow } from 'enzyme';

import { dataGenerator, getTopoJSON, getLocationIds } from '../../../test-utils';

import Choropleth from '../src/choropleth';

chai.use(chaiEnzyme());

describe('<Choropleth />', () => {
  const keyField = 'locationId';
  const valueField = 'mean';
  const layers = [
    { name: 'country', type: 'feature' },
    { name: 'states', type: 'mesh', filterFn(a, b) { return a !== b; } }
  ];
  const geo = getTopoJSON();
  const locIds = [102, ...getLocationIds(geo.objects.states.geometries)];
  const data = dataGenerator({
    primaryKeys: [{ name: keyField, values: locIds }],
    valueKeys: [<commit_msg>adjust Choropleth test to match new layers format<commit_after>import React from 'react';
import chai, { expect } from 'chai';
import chaiEnzyme from 'chai-enzyme';
import { shallow } from 'enzyme';

import { dataGenerator, getTopoJSON, getLocationIds } from '../../../test-utils';

import Choropleth from '../src/choropleth';

chai.use(chaiEnzyme());

describe('<Choropleth />', () => {
  const keyField = 'locationId';
  const valueField = 'mean';
  const layers = [
    { name: 'country', object: 'country', type: 'feature' },
    { name: 'states', object: 'states', type: 'mesh', filterFn(a, b) { return a !== b; } }
  ];
  const geo = getTopoJSON();
  const locIds = [102, ...getLocationIds(geo.objects.states.geometries)];
  const data = dataGenerator({
    primaryKeys: [{ name: keyField, values: locIds }],
    valueKeys: [
{'fraction_non_alphanumeric': 0.1749528005034613, 'fraction_numerical': 0.003775959723096287, 'mean_word_length': 4.096153846153846, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3301133', 'n_tokens_mistral': 533, 'n_tokens_neox': 515, 'n_words': 143}