aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-12-12 22:11:39 +0100
committerGitHub <noreply@github.com>2022-12-12 22:11:39 +0100
commita442c9f5564ff9690803faa92012e35541588294 (patch)
tree3c208ae164e88a7329f72e43b8dc04fe88694d09
parent54d6a32fbdcbd5b26b72f4dca8906e60f5186d2c (diff)
parentea8b82890179be4243902d88a5241bbc33122aad (diff)
downloadrneovim-a442c9f5564ff9690803faa92012e35541588294.tar.gz
rneovim-a442c9f5564ff9690803faa92012e35541588294.tar.bz2
rneovim-a442c9f5564ff9690803faa92012e35541588294.zip
Merge pull request #21375 from nojnhuh/highlight-test
fix(tests): initialize Screen.colors in API highlight tests
-rw-r--r--test/functional/api/highlight_spec.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/api/highlight_spec.lua b/test/functional/api/highlight_spec.lua
index 3b36563d21..541ac0ab63 100644
--- a/test/functional/api/highlight_spec.lua
+++ b/test/functional/api/highlight_spec.lua
@@ -11,6 +11,9 @@ local ok = helpers.ok
local assert_alive = helpers.assert_alive
describe('API: highlight',function()
+ clear()
+ Screen.new() -- initialize Screen.colors
+
local expected_rgb = {
background = Screen.colors.Yellow,
foreground = Screen.colors.Red,