From 3cb60641e7ff20b24bf488a6f7e3c1ae0b494eea Mon Sep 17 00:00:00 2001 From: get-me-power Date: Wed, 11 Sep 2024 02:28:20 +0900 Subject: [PATCH] chore: update test --- test/themes.vimspec | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/test/themes.vimspec b/test/themes.vimspec index 2a3cfab8..6a0b73b0 100644 --- a/test/themes.vimspec +++ b/test/themes.vimspec @@ -4,14 +4,16 @@ Describe themes.vim highlight clear Normal End - It should extract correct colors - call airline#highlighter#reset_hlcache() - highlight Foo ctermfg=1 ctermbg=2 - let colors = airline#themes#get_highlight('Foo') - Assert Equals(colors[0], 'NONE') - Assert Equals(colors[1], 'NONE') - Assert Equals(colors[2], '1') - Assert Equals(colors[3], '2') + It should extract correct colors with No termguicolors + if !exists("+termguicolors") + call airline#highlighter#reset_hlcache() + highlight Foo ctermfg=1 ctermbg=2 + let colors = airline#themes#get_highlight('Foo') + Assert Equals(colors[0], 'NONE') + Assert Equals(colors[1], 'NONE') + Assert Equals(colors[2], '1') + Assert Equals(colors[3], '2') + endif End if exists("+termguicolors")