<commit_before>'use babel'

import PromptViewList from '../lib/prompt-view-list';

describe('PromptViewList', () => {
  describe('when setSelectedItem is called', () => {
    it('changes the selected item', () => {
      const list = new PromptViewList()
      list.initialize()
      list.open(['1', '2', '3'])
      list.setSelectedItem('1')
      expect(list.getItem()).toBe('1')
    })
  })<commit_msg>Fix the names of the test cases<commit_after>'use babel'

import PromptViewList from '../lib/prompt-view-list';

describe('PromptViewList', () => {
  describe('.setSelectedItem', () => {
    it('changes the selected item', () => {
      const list = new PromptViewList()
      list.initialize()
      list.open(['1', '2', '3'])
      list.setSelectedItem('1')
      expect(list.getItem()).toBe('1')
    })
  })
{'fraction_non_alphanumeric': 0.1948529411764706, 'fraction_numerical': 0.012254901960784314, 'mean_word_length': 3.3689839572192515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4014012', 'n_tokens_mistral': 260, 'n_tokens_neox': 257, 'n_words': 53}