From ea8b82890179be4243902d88a5241bbc33122aad Mon Sep 17 00:00:00 2001 From: Jon Huhn Date: Sat, 10 Dec 2022 15:46:34 -0600 Subject: fix(tests): initialize Screen.colors in API highlight tests --- test/functional/api/highlight_spec.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/functional/api') 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, -- cgit