feat: implement health checks
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
local plugin = require("watchexec")
|
||||
|
||||
describe("watchexec logic", function()
|
||||
before_each(function()
|
||||
plugin.setup({
|
||||
greeting = "Hello Test!"
|
||||
})
|
||||
end)
|
||||
before_each(function()
|
||||
plugin.setup({
|
||||
greeting = "Hello Test!",
|
||||
})
|
||||
end)
|
||||
|
||||
it("can be required without errors", function()
|
||||
assert.not_nil(plugin)
|
||||
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)
|
||||
it("correctly applies user configuration", function()
|
||||
assert.equals("Hello Test!", plugin.config.greeting)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user