From d0dddc36b067d50528f69ab21573a388a49322be Mon Sep 17 00:00:00 2001 From: William Boman Date: Tue, 18 Apr 2023 00:32:08 +0200 Subject: feat: add require("mason").has_setup flag (#1226) --- tests/mason/setup_spec.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/mason/setup_spec.lua b/tests/mason/setup_spec.lua index 97947420..3aa4d3dd 100644 --- a/tests/mason/setup_spec.lua +++ b/tests/mason/setup_spec.lua @@ -78,4 +78,12 @@ describe("mason setup", function() nargs = "0", }(user_commands["MasonLog"])) end) + + it("should set the has_setup flag", function() + package.loaded["mason"] = nil + local mason = require "mason" + assert.is_false(mason.has_setup) + mason.setup() + assert.is_true(mason.has_setup) + end) end) -- cgit v1.2.3-70-g09d2