aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/highlight_spec.lua
diff options
context:
space:
mode:
authorJon Huhn <huhnjon@gmail.com>2022-12-10 15:46:34 -0600
committerJon Huhn <huhnjon@gmail.com>2022-12-10 15:59:21 -0600
commitea8b82890179be4243902d88a5241bbc33122aad (patch)
treeeb659eafb19a1c2d78e1ce2f348f958956fbf5dc /test/functional/api/highlight_spec.lua
parent224473546c95f17c45afc54fe8b4ef5f0e000974 (diff)
downloadrneovim-ea8b82890179be4243902d88a5241bbc33122aad.tar.gz
rneovim-ea8b82890179be4243902d88a5241bbc33122aad.tar.bz2
rneovim-ea8b82890179be4243902d88a5241bbc33122aad.zip
fix(tests): initialize Screen.colors in API highlight tests
Diffstat (limited to 'test/functional/api/highlight_spec.lua')
-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,