chore: initial project setup
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
vim.opt.runtimepath:append(".")
|
||||
vim.opt.runtimepath:append(".tests/vendor/plenary.nvim")
|
||||
print("Minimal init loaded successfully!")
|
||||
@@ -0,0 +1,17 @@
|
||||
local plugin = require("watchexec")
|
||||
|
||||
describe("watchexec logic", function()
|
||||
before_each(function()
|
||||
plugin.setup({
|
||||
greeting = "Hello Test!"
|
||||
})
|
||||
end)
|
||||
|
||||
it("can be required without errors", function()
|
||||
assert.not_nil(plugin)
|
||||
end)
|
||||
|
||||
it("correctly applies user configuration", function()
|
||||
assert.equals("Hello Test!", plugin.config.greeting)
|
||||
end)
|
||||
end)
|
||||
Reference in New Issue
Block a user