mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 03:58:32 +00:00
Merge pull request #18431 from famiu/feat/api/nvim_get_autocmds/group_name
feat(api): add `group_name` to `nvim_get_autocmds`
This commit is contained in:
@@ -444,6 +444,7 @@ describe('autocmd api', function()
|
||||
|
||||
eq(1, #aus)
|
||||
eq([[:echo "GroupOne:1"]], aus[1].command)
|
||||
eq("GroupOne", aus[1].group_name)
|
||||
end)
|
||||
|
||||
it('should return only the group specified, multiple values', function()
|
||||
@@ -454,7 +455,9 @@ describe('autocmd api', function()
|
||||
|
||||
eq(2, #aus)
|
||||
eq([[:echo "GroupTwo:2"]], aus[1].command)
|
||||
eq("GroupTwo", aus[1].group_name)
|
||||
eq([[:echo "GroupTwo:3"]], aus[2].command)
|
||||
eq("GroupTwo", aus[2].group_name)
|
||||
end)
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user