diff options
Diffstat (limited to 'tests/core/functional/string_spec.lua')
| -rw-r--r-- | tests/core/functional/string_spec.lua | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/core/functional/string_spec.lua b/tests/core/functional/string_spec.lua index cbee0617..4f9f4722 100644 --- a/tests/core/functional/string_spec.lua +++ b/tests/core/functional/string_spec.lua @@ -1,4 +1,4 @@ -local _ = require "nvim-lsp-installer.core.functional" +local _ = require "mason.core.functional" describe("functional: string", function() it("matches string patterns", function() @@ -23,4 +23,21 @@ describe("functional: string", function() it("should gsub strings", function() assert.same("predator", _.gsub("^apex%s*", "", "apex predator")) end) + + it("should dedent strings", function() + assert.equals( + [[Lorem +Ipsum + Dolor + Sit + Amet]], + _.dedent [[ + Lorem + Ipsum + Dolor + Sit + Amet +]] + ) + end) end) |
