90619ab253
subrepo: subdir: "dotfiles/.vim/plugged/lightline.vim" merged: "b1e91b41" upstream: origin: "https://github.com/itchyny/lightline.vim.git" branch: "master" commit: "b1e91b41" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
15 lines
377 B
VimL
15 lines
377 B
VimL
let s:suite = themis#suite('error')
|
|
let s:assert = themis#helper('assert')
|
|
|
|
function! s:message() abort
|
|
redir => messages
|
|
silent! messages
|
|
redir END
|
|
return split(messages, '\n')[-1]
|
|
endfunction
|
|
|
|
function! s:suite.error()
|
|
let message = 'An error occurred.'
|
|
call lightline#error(message)
|
|
call s:assert.equals(s:message(), 'lightline.vim: ' . message)
|
|
endfunction
|