<commit_before>import React from 'react';
import { expect } from 'chai';
import { List as ImmutableList, Map } from 'immutable';
import reducer from '../src/reducer';

describe('reducer', () => {

  it('should return the initial state', () => {
    const actual = reducer(undefined, {});
    const expected = ImmutableList.of();
    expect(actual).to.eql(expected);
  });

  it('should handle ADD_STICKER', () => {
    const sticker = new Map({ id: 100, image: 'foo.png' });
    const actual = reducer(ImmutableList.of(), { type: 'ADD_STICKER', sticker });
    const expected = ImmutableList.of(new Map({ id: 100, image: 'foo.png' }));
    expect(actual).to.eql(expected);
  });

});<commit_msg>Add missing test for reducer action CLEAR_CUSTOMIZATION<commit_after>import React from 'react';
import { expect } from 'chai';
import { List as ImmutableList, Map } from 'immutable';
import reducer from '../src/reducer';

describe('reducer', () => {

  it('should return the initial state', () => {
    const actual = reducer(undefined, {});
    const expected = ImmutableList.of();
    expect(actual).to.eql(expected);
  });

  it('should handle ADD_STICKER', () => {
    const sticker = new Map({ id: 100, image: 'foo.png' });
    const actual = reducer(ImmutableList.of(), { type: 'ADD_STICKER', sticker });
    const expected = ImmutableList.of(new Map({ id: 100, image: 'foo.png' }));
    expect(actual).to.eql(expected);
  });

  describe('CLEAR_CUSTOMIZATION', () => {
    it('should return an empty list', () => {
      const sticker = new Map({ id: 100, image: 'foo.png' });
      const actual = reducer(
        ImmutableList.of(sticker, sticker),
        { type: 'CLEAR_CUSTOMIZATION' }
      );

      const expected = ImmutableList.of();
      expect(actual).to.eql(expected);
    });
  })


});
{'fraction_non_alphanumeric': 0.17470881863560733, 'fraction_numerical': 0.008319467554076539, 'mean_word_length': 3.6857142857142855, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5870984', 'n_tokens_mistral': 603, 'n_tokens_neox': 581, 'n_words': 147}