aboutsummaryrefslogtreecommitdiff
path: root/vim/.vim/plugged/lightline.vim/test/mode.vim
diff options
context:
space:
mode:
authorKumar Damani <damani.kumar@gmail.com>2019-04-26 18:49:26 +0000
committerKumar Damani <damani.kumar@gmail.com>2019-04-26 18:49:26 +0000
commit5a6ed5fcb3b89d0c2b4e8ba2953c4ba806d4b171 (patch)
tree5be0c043b0c8d632e35a8b4ef7e23452b103b94d /vim/.vim/plugged/lightline.vim/test/mode.vim
parentaf821092fe78ef159d7cb6536bb006712dc01b9d (diff)
added vim dir
Diffstat (limited to 'vim/.vim/plugged/lightline.vim/test/mode.vim')
-rw-r--r--vim/.vim/plugged/lightline.vim/test/mode.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/vim/.vim/plugged/lightline.vim/test/mode.vim b/vim/.vim/plugged/lightline.vim/test/mode.vim
new file mode 100644
index 0000000..53280f5
--- /dev/null
+++ b/vim/.vim/plugged/lightline.vim/test/mode.vim
@@ -0,0 +1,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