Skip to content

Commit

Permalink
perf(test): improve test cases (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 authored Dec 18, 2023
1 parent b8de083 commit 5b0da01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/colorbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ local function update(opts)
})

local home_dir = vim.fn["colorbox#base_dir"]()
local packstart = string.format("%s/pack/colorbox/start", home_dir)
-- local packstart = string.format("%s/pack/colorbox/start", home_dir)
-- logger.debug(
-- "|colorbox.init| home_dir:%s, pack:%s",
-- vim.inspect(home_dir),
Expand Down
7 changes: 5 additions & 2 deletions test/colorbox_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ describe("colorbox", function()
vim.api.nvim_command("cd " .. cwd)
end)

local github_actions = os.getenv("GITHUB_ACTIONS") == "true"
local colorbox = require("colorbox")
describe("[setup]", function()
it("setup", function()
-- colorbox.update()
-- colorbox.setup()
if not github_actions then
colorbox.update()
colorbox.setup()
end
end)
end)
end)
2 changes: 1 addition & 1 deletion test/db_spec.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local cwd = vim.fn.getcwd()

describe("db", function()
describe("colorbox.db", function()
local assert_eq = assert.is_equal
local assert_true = assert.is_true
local assert_false = assert.is_false
Expand Down

0 comments on commit 5b0da01

Please sign in to comment.