fix(test): proper stubbing/mocking
This commit is contained in:
parent
ac21638550
commit
f86eeb7876
1 changed files with 2 additions and 1 deletions
|
|
@ -224,7 +224,8 @@ describe('ansi parser', function()
|
|||
ansi.setup_highlight_groups()
|
||||
|
||||
local highlight = vim.api.nvim_get_hl(0, { name = 'CpAnsiRed' })
|
||||
assert.equals('NONE', highlight.fg)
|
||||
-- When 'NONE' is set, nvim_get_hl returns nil for that field
|
||||
assert.is_nil(highlight.fg)
|
||||
|
||||
for i = 0, 15 do
|
||||
vim.g['terminal_color_' .. i] = original_colors[i]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue