Skip to content

Commit 500981f

Browse files
L3MON4D3github-actions[bot]
authored andcommitted
Format with stylua
1 parent 3c92397 commit 500981f

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

tests/integration/parser_spec.lua

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -738,20 +738,24 @@ describe("Parser", function()
738738
})
739739
end)
740740

741-
it("correctly transforms if the match does not include the first character.", function()
742-
ls_helpers.setup_jsregexp()
743-
ls_helpers.session_setup_luasnip()
744-
local snip = "${1:asdf.asdf} ${1/[\\.]/-/g}"
745-
746-
-- expand snippet.
747-
exec_lua("ls.lsp_expand([[" .. snip .. "]])")
748-
749-
screen:expect{
750-
grid=[[
741+
it(
742+
"correctly transforms if the match does not include the first character.",
743+
function()
744+
ls_helpers.setup_jsregexp()
745+
ls_helpers.session_setup_luasnip()
746+
local snip = "${1:asdf.asdf} ${1/[\\.]/-/g}"
747+
748+
-- expand snippet.
749+
exec_lua("ls.lsp_expand([[" .. snip .. "]])")
750+
751+
screen:expect({
752+
grid = [[
751753
^a{3:sdf.asdf} asdf-asdf |
752754
{0:~ }|
753-
{2:-- SELECT --} |]]}
754-
end)
755+
{2:-- SELECT --} |]],
756+
})
757+
end
758+
)
755759

756760
it("handles default correctly inside placeholder", function()
757761
ls_helpers.session_setup_luasnip()

0 commit comments

Comments
 (0)