aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/highlight_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-08-07 14:42:25 +0200
committerGitHub <noreply@github.com>2023-08-07 14:42:25 +0200
commit3a21c3afe61e5bb76f4b81c1a961b2558e2c8f0a (patch)
tree02d894cf470742f02a1d69e05078562abd7f4762 /test/functional/api/highlight_spec.lua
parentef44e597294e4d0d9128ef69b6aa7481a54e17cb (diff)
parent51c754b62e795c49cfcf9df3ab492bdd53c61482 (diff)
downloadrneovim-3a21c3afe61e5bb76f4b81c1a961b2558e2c8f0a.tar.gz
rneovim-3a21c3afe61e5bb76f4b81c1a961b2558e2c8f0a.tar.bz2
rneovim-3a21c3afe61e5bb76f4b81c1a961b2558e2c8f0a.zip
Merge pull request #24524 from bfredl/typed_keys
refactor(api): use typed keysets
Diffstat (limited to 'test/functional/api/highlight_spec.lua')
-rw-r--r--test/functional/api/highlight_spec.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/api/highlight_spec.lua b/test/functional/api/highlight_spec.lua
index d3a79327ae..5fa2235018 100644
--- a/test/functional/api/highlight_spec.lua
+++ b/test/functional/api/highlight_spec.lua
@@ -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' })
)