<commit_before>import {expect} from 'chai';
import {updateVisitors} from '../actions/';
import reduceState from '../reducers';

describe('UPDATE_VISITORS', () => {
    it('should replace visitors with set from action', () => {
        const visitors = [{foo: 'bar', baz: 'quux'}];
        const initialState = [];

        const newState = reduceState(initialState, updateVisitors(visitors));

        // The state is just visitors list.
        expect(newState).to.deep.equal(visitors);
    });
});<commit_msg>Improve test description for reducers tests<commit_after>import {expect} from 'chai';
import {updateVisitors} from '../actions/';
import reduceState from '../reducers';

describe('Visitors Reducers', () => {
    describe('UPDATE_VISITORS', () => {
        it('should replace visitors with set from action', () => {
            const visitors = [{foo: 'bar', baz: 'quux'}];
            const initialState = [];

            const newState = reduceState(initialState, updateVisitors(visitors));

            // The state is just visitors list.
            expect(newState).to.deep.equal(visitors);
        });
    });
});
{'fraction_non_alphanumeric': 0.15575221238938053, 'fraction_numerical': 0.0, 'mean_word_length': 3.068345323741007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '2760402', 'n_tokens_mistral': 317, 'n_tokens_neox': 307, 'n_words': 85}