aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/lightline.vim/test/mode.vim
blob: 53280f51bd6b8690a8472522f7e48feaf1466f2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
let s:suite = themis#suite('mode')
let s:assert = themis#helper('assert')

function! s:suite.mode()
  let g:lightline = {}
  call lightline#init()
  call s:assert.equals(lightline#mode(), 'NORMAL')
endfunction

function! s:suite.mode_map()
  let g:lightline = { 'mode_map': { 'n': 'N' } }
  call lightline#init()
  call s:assert.equals(lightline#mode(), 'N')
endfunction