fix(test): proper stubbing/mocking
This commit is contained in:
parent
27a44697ce
commit
26807d42ba
3 changed files with 20 additions and 58 deletions
|
|
@ -224,7 +224,7 @@ describe('ansi parser', function()
|
|||
ansi.setup_highlight_groups()
|
||||
|
||||
local highlight = vim.api.nvim_get_hl(0, { name = 'CpAnsiRed' })
|
||||
assert.equals('NONE', highlight.fg)
|
||||
assert.equals(nil, highlight.fg)
|
||||
|
||||
for i = 0, 15 do
|
||||
vim.g['terminal_color_' .. i] = original_colors[i]
|
||||
|
|
@ -237,7 +237,7 @@ describe('ansi parser', function()
|
|||
ansi.setup_highlight_groups()
|
||||
|
||||
local highlight = vim.api.nvim_get_hl(0, { name = 'CpAnsiRed' })
|
||||
assert.equals('#ff0000', highlight.fg)
|
||||
assert.equals(0xff0000, highlight.fg)
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue