From 5f634e0c37e723fc0c33e06b4fd5c2180178db40 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 6 Jul 2022 19:41:43 +0200 Subject: mason.nvim --- tests/core/functional/string_spec.lua | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'tests/core/functional/string_spec.lua') 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) -- cgit v1.2.3-70-g09d2