<commit_before>import { expect } from 'chai';
import sinon from 'sinon';

import createStore from '../../resolve-es/src';
import memoryEsDriver from '../../resolve-es-memory/src';

import createBus from '../../resolve-bus/src';
import memoryBusDriver from '../../resolve-bus-memory/src';

import commandHandler from '../src';

describe('command', () => {
    const AGGREGATE_NAME = 'test_aggregate';
    let store;
    let bus;
    let execute;
    let aggregates;
    let testCommand;
    let testEvent;

    beforeEach(() => {
        testCommand = {
            aggregateId: 'test-id',
            aggregate: AGGREGATE_NAME,
            commandName: 'CREATE',
            payload: { name: 'Vasiliy' }
        };

        testEvent = {
            aggregateId: 'test-id',
            type: 'USER_CREATED',
            payload: { name: 'Vasiliy' }
        };

        aggregates = {<commit_msg>Use neutral name in tests<commit_after>import { expect } from 'chai';
import sinon from 'sinon';

import createStore from '../../resolve-es/src';
import memoryEsDriver from '../../resolve-es-memory/src';

import createBus from '../../resolve-bus/src';
import memoryBusDriver from '../../resolve-bus-memory/src';

import commandHandler from '../src';

describe('command', () => {
    const AGGREGATE_NAME = 'test_aggregate';
    let store;
    let bus;
    let execute;
    let aggregates;
    let testCommand;
    let testEvent;

    beforeEach(() => {
        testCommand = {
            aggregateId: 'test-id',
            aggregate: AGGREGATE_NAME,
            commandName: 'CREATE',
            payload: { name: 'Jack' }
        };

        testEvent = {
            aggregateId: 'test-id',
            type: 'USER_CREATED',
            payload: { name: 'Jack' }
        };

        aggregates = {
{'fraction_non_alphanumeric': 0.1447661469933185, 'fraction_numerical': 0.0, 'mean_word_length': 2.1252173913043477, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6878620', 'n_tokens_mistral': 523, 'n_tokens_neox': 524, 'n_words': 132}