From d9fc8c7eca8e6d6d4f2d59782f1bc161f1ea0309 Mon Sep 17 00:00:00 2001 From: Giuseppe Gadola Date: Sat, 28 Jan 2023 14:41:07 +0100 Subject: chore: first commit --- tests/pets/pets_spec.lua | 12 ++++++++++++ tests/plugin_name/plugin_name_spec.lua | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 tests/pets/pets_spec.lua delete mode 100644 tests/plugin_name/plugin_name_spec.lua (limited to 'tests') 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) diff --git a/tests/plugin_name/plugin_name_spec.lua b/tests/plugin_name/plugin_name_spec.lua deleted file mode 100644 index 42ab112..0000000 --- a/tests/plugin_name/plugin_name_spec.lua +++ /dev/null @@ -1,12 +0,0 @@ -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) -- cgit v1.3-2-g11bf