aboutsummaryrefslogtreecommitdiff
path: root/tests/pets
diff options
context:
space:
mode:
authorGiuseppe Gadola <giusgadola@gmail.com>2023-01-28 14:41:07 +0100
committerGiuseppe Gadola <giusgadola@gmail.com>2023-02-10 16:05:59 +0100
commitd9fc8c7eca8e6d6d4f2d59782f1bc161f1ea0309 (patch)
treec7e9bc5cebac68849bb68f37b00e261e1d5dbff3 /tests/pets
parentInitial commit (diff)
chore: first commit
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)