aboutsummaryrefslogtreecommitdiff
path: root/tests/pets
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pets')
-rw-r--r--tests/pets/pets_spec.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pets/pets_spec.lua b/tests/pets/pets_spec.lua
new file mode 100644
index 0000000..42ab112
--- /dev/null
+++ b/tests/pets/pets_spec.lua
@@ -0,0 +1,12 @@
+local plugin = require("plugin_name")
+
+describe("setup", function()
+ it("works with default", function()
+ assert("my first function with param = Hello!", plugin.hello())
+ end)
+
+ it("works with custom var", function()
+ plugin.setup({ opt = "custom" })
+ assert("my first function with param = custom", plugin.hello())
+ end)
+end)