mirror of
https://github.com/neovim/neovim.git
synced 2026-04-27 09:44:07 +00:00
refactor(api): use typed keysets
Initially this is just for geting rid of boilerplate, but eventually the types could get exposed as metadata
This commit is contained in:
@@ -434,10 +434,8 @@ describe('API: get highlight', function()
|
||||
before_each(clear)
|
||||
|
||||
it('validation', function()
|
||||
eq(
|
||||
'Invalid highlight name: expected String, got Integer',
|
||||
pcall_err(meths.get_hl, 0, { name = 177 })
|
||||
)
|
||||
eq("Invalid 'name': expected String, got Integer",
|
||||
pcall_err(meths.get_hl, 0, { name = 177 }))
|
||||
eq('Highlight id out of bounds', pcall_err(meths.get_hl, 0, { name = 'Test set hl' }))
|
||||
end)
|
||||
|
||||
@@ -534,7 +532,7 @@ describe('API: get highlight', function()
|
||||
eq('Highlight id out of bounds', pcall_err(meths.get_hl, 0, { id = 0 }))
|
||||
|
||||
eq(
|
||||
'Invalid highlight id: expected Integer, got String',
|
||||
"Invalid 'id': expected Integer, got String",
|
||||
pcall_err(meths.get_hl, 0, { id = 'Test_set_hl' })
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user