diff options
| author | William Boman <william@redwill.se> | 2023-04-18 00:32:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-18 00:32:08 +0200 |
| commit | d0dddc36b067d50528f69ab21573a388a49322be (patch) | |
| tree | 030e477e6558f7ff343b91fdb9bc6f7fb0864b5e /tests | |
| parent | chore: autogenerate (#1225) (diff) | |
| download | mason-d0dddc36b067d50528f69ab21573a388a49322be.tar mason-d0dddc36b067d50528f69ab21573a388a49322be.tar.gz mason-d0dddc36b067d50528f69ab21573a388a49322be.tar.bz2 mason-d0dddc36b067d50528f69ab21573a388a49322be.tar.lz mason-d0dddc36b067d50528f69ab21573a388a49322be.tar.xz mason-d0dddc36b067d50528f69ab21573a388a49322be.tar.zst mason-d0dddc36b067d50528f69ab21573a388a49322be.zip | |
feat: add require("mason").has_setup flag (#1226)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/mason/setup_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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) |
