aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/highlight_spec.lua
diff options
context:
space:
mode:
authorshadmansaleh <shadmansaleh3@gmail.com>2021-04-03 15:54:34 +0600
committershadmansaleh <shadmansaleh3@gmail.com>2021-04-22 17:09:18 +0600
commit0559d3f9c6bbcf6110e04a6f831b077e832be879 (patch)
tree78d9e6bee00b6e7ce19b36674ec96cfd9ad1024d /test/functional/api/highlight_spec.lua
parentf4224a12c039f09e237ac7e5e7db4431747a9b54 (diff)
downloadrneovim-0559d3f9c6bbcf6110e04a6f831b077e832be879.tar.gz
rneovim-0559d3f9c6bbcf6110e04a6f831b077e832be879.tar.bz2
rneovim-0559d3f9c6bbcf6110e04a6f831b077e832be879.zip
Improvements to tests
Diffstat (limited to 'test/functional/api/highlight_spec.lua')
-rw-r--r--test/functional/api/highlight_spec.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/api/highlight_spec.lua b/test/functional/api/highlight_spec.lua
index 6f9188d880..21e3094f8e 100644
--- a/test/functional/api/highlight_spec.lua
+++ b/test/functional/api/highlight_spec.lua
@@ -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)