From 37c745fa73b983c86904132efb30ef2a4a76df5e Mon Sep 17 00:00:00 2001 From: William Boman Date: Sun, 30 Oct 2022 17:43:46 +0100 Subject: feat: add provider interface (#601) --- tests/mason-core/functional/function_spec.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/mason-core/functional/function_spec.lua') diff --git a/tests/mason-core/functional/function_spec.lua b/tests/mason-core/functional/function_spec.lua index 4da41d40..28abce20 100644 --- a/tests/mason-core/functional/function_spec.lua +++ b/tests/mason-core/functional/function_spec.lua @@ -139,4 +139,11 @@ describe("functional: function", function() assert.is_true(_.T()) assert.is_false(_.F()) end) + + it("should tap values", function() + local fn = spy.new() + assert.equals(42, _.tap(fn, 42)) + assert.spy(fn).was_called() + assert.spy(fn).was_called_with(42) + end) end) -- cgit v1.2.3-70-g09d2