mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Improvements to tests
This commit is contained in:
parent
f4224a12c0
commit
0559d3f9c6
@ -218,12 +218,13 @@ describe("API: set highlight", function()
|
||||
}
|
||||
|
||||
local function get_ns()
|
||||
local ns = meths.get_namespaces().Test_set_hl
|
||||
if not ns then ns = meths.create_namespace('Test_set_hl') end
|
||||
local ns = meths.create_namespace('Test_set_hl')
|
||||
meths._set_hl_ns(ns)
|
||||
return ns
|
||||
end
|
||||
|
||||
before_each(clear)
|
||||
|
||||
it ("can set gui highlight", function()
|
||||
local ns = get_ns()
|
||||
meths.set_hl(ns, 'Test_hl', highlight1)
|
||||
|
Loading…
Reference in New Issue
Block a user