message: Add unit test for long user configured chords.
diff: import * as assert from 'assert';
  import * as srcConfiguration from '../../src/configuration/configuration';
  -import { Globals } from '../../src/globals';
  import * as testConfiguration from '../testConfiguration';
  -import { reloadConfiguration } from '../testUtils';
  +import { cleanUpWorkspace, setupWorkspace } from './../testUtils';
  +import { getTestingFunctions } from '../testSimplifier';
  +import { ModeName } from '../../src/mode/mode';
  suite('Configuration', () => {
  - suiteSetup(() => {
  - let configuration = new testConfiguration.Configuration();
  + const { newTest } = getTestingFunctions();
  + const configuration = new testConfiguration.Configuration();
  configuration.leader = '<space>';
  configuration.otherModesKeyBindingsNonRecursive = [
  {
  before: ['leader', 'o'],
  after: ['o', 'eSc', 'k'],
  },
  + {
  + before: ['<leader>', 'f', 'e', 's'],
  + after: ['v'],
  + },
  ];
  - Globals.mockConfiguration = configuration;
  - reloadConfiguration();
  + setup(async () => {
  + await setupWorkspace(configuration);
  });
  + teardown(cleanUpWorkspace);
  +
  test('remappings are normalized', async () => {
  - let configuration = srcConfiguration.configuration;
  - let keybindings = configuration.otherModesKeyBindingsNonRecursive;
  + const normalizedKeybinds = srcConfiguration.configuration.otherModesKeyBindingsNonRecursive;
  + const testingKeybinds = configuration.otherModesKeyBindingsNonRecursive;
  +
  + assert.equal(normalizedKeybinds.length, testingKeybinds.length);
  + assert.deepEqual(normalizedKeybinds[0].before, [' ', 'o']);
  + assert.deepEqual(normalizedKeybinds[0].after, ['o', '<Esc>', 'k']);
  + });
  - assert.equal(keybindings.length, 1);
  - assert.deepEqual(keybindings[0].before, [' ', 'o']);
  - assert.deepEqual(keybindings[0].after, ['o', '<Esc>', 'k']);
  + newTest({
  + title: 'Can handle long key chords',
  + start: ['|'],
  + keysPressed: ' fes',
  + end: ['|'],
  + endMode: ModeName.Visual,
  });
  });
  