Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atinylittleshell committed Apr 7, 2024
1 parent 0eff85b commit 6b8d2fb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/comment_repl/comment_repl_spec.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
local plugin = require("plugin_name")
local plugin = require("comment_repl")

describe("setup", function()
it("works with default", function()
assert(plugin.hello() == "Hello!", "my first function with param = Hello!")
end)

it("works with custom var", function()
plugin.setup({ opt = "custom" })
assert(plugin.hello() == "custom", "my first function with param = custom")
assert(plugin.execute() == "Hello, World!", "Expected 'Hello, World!'")
end)
end)

0 comments on commit 6b8d2fb

Please sign in to comment.