message: Update test to handle non reversed history
diff: @@ -46,7 +46,7 @@ suite('command-line history', () => {
  for (let cmd of run_cmds) {
  history.add(cmd);
  }
  - assertArrayEquals(run_cmds.slice().reverse(), history.get());
  + assertArrayEquals(run_cmds.slice(), history.get());
  });
  test('add empty command', async () => {
  @@ -54,9 +54,9 @@ suite('command-line history', () => {
  history.add(cmd);
  }
  history.add('');
  - assertArrayEquals(run_cmds.slice().reverse(), history.get());
  + assertArrayEquals(run_cmds.slice(), history.get());
  history.add(undefined);
  - assertArrayEquals(run_cmds.slice().reverse(), history.get());
  + assertArrayEquals(run_cmds.slice(), history.get());
  });
  test('add command over configuration.history', async () => {
  @@ -69,8 +69,7 @@ suite('command-line history', () => {
  assertArrayEquals(
  run_cmds
  .slice()
  - .splice(1, configuration.history)
  - .reverse(),
  + .splice(1, configuration.history),
  history.get()
  );
  });
  @@ -81,9 +80,9 @@ suite('command-line history', () => {
  }
  let existed_cmd: string = '0';
  history.add(existed_cmd);
  - let expected_raw_history: string[] = run_cmds.slice().reverse();
  + let expected_raw_history: string[] = run_cmds.slice();
  expected_raw_history.splice(expected_raw_history.indexOf(existed_cmd), 1);
  - expected_raw_history.unshift(existed_cmd);
  + expected_raw_history.push(existed_cmd);
  assertArrayEquals(expected_raw_history, history.get());
  });
  @@ -93,7 +92,7 @@ suite('command-line history', () => {
  }
  let history2 = new CommandLineHistory(filePath);
  - assertArrayEquals(run_cmds.slice().reverse(), history2.get());
  + assertArrayEquals(run_cmds.slice(), history2.get());
  });
  test('change configuration.history', async () => {
  @@ -111,8 +110,7 @@ suite('command-line history', () => {
  assertArrayEquals(
  run_cmds
  .slice()
  - .splice(run_cmds.length - 10)
  - .reverse(),
  + .splice(run_cmds.length - 10),
  history.get()
  );
  });
  