'use babel'

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

describe('PromptViewList', () => {
  describe('when setItem is called', () => {
    it('changes the selected item', () => {
      const list = new PromptViewList()
      list.initialize()
      list.open(['1', '2', '3'])
      list.setItem('1')
      expect(list.getItem()).toBe('1')
    })
  })
})

Add the test case of PromptViewList
Add the test case of PromptViewList

  ref #34
