Skip to content

Commit 91bc5a9

Browse files
authored
fix(test): fix unit tests (#259)
1 parent 1c701a5 commit 91bc5a9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

spec/colorbox/loader_spec.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,26 @@ describe("colorbox.loader", function()
1212
local github_actions = os.getenv("GITHUB_ACTIONS") == "true"
1313
local runtime = require("colorbox.runtime")
1414
local loader = require("colorbox.loader")
15+
local db = require("colorbox.db")
1516
require("colorbox").setup({
1617
debug = true,
1718
file_log = true,
1819
background = "dark",
1920
})
2021

22+
local disabled_colorspecs = { ["zenbones-theme/zenbones.nvim"] = true }
23+
2124
describe("loader", function()
2225
it("load", function()
26+
local color_name_to_color_specs_map = db.get_color_name_to_color_specs_map()
27+
2328
-- if not github_actions then
2429
local colors = runtime.colornames()
2530
for i, c in ipairs(colors) do
26-
loader.load(c)
31+
local colorspec = color_name_to_color_specs_map[c]
32+
if not disabled_colorspecs[colorspec.handle] then
33+
loader.load(c)
34+
end
2735
end
2836
-- end
2937
end)

0 commit comments

Comments
 (0)