Files
watchexec.nvim/tests/watchexec/watchexec_spec.lua
T

18 lines
377 B
Lua
Raw Normal View History

2026-07-04 08:46:05 -05:00
local plugin = require("watchexec")
describe("watchexec logic", function()
2026-07-04 11:05:50 -05:00
before_each(function()
plugin.setup({
greeting = "Hello Test!",
})
end)
2026-07-04 08:46:05 -05:00
2026-07-04 11:05:50 -05:00
it("can be required without errors", function()
assert.not_nil(plugin)
end)
2026-07-04 08:46:05 -05:00
2026-07-04 11:05:50 -05:00
it("correctly applies user configuration", function()
assert.equals("Hello Test!", plugin.config.greeting)
end)
2026-07-04 08:46:05 -05:00
end)