mirror of
https://github.com/L3MON4D3/LuaSnip
synced 2024-09-08 01:45:44 +02:00
Format with stylua
This commit is contained in:
parent
93d4dcd61f
commit
ce0a05ab4e
1 changed files with 9 additions and 6 deletions
|
@ -6,14 +6,17 @@ describe("luasnip.loaders.util:", function()
|
|||
exec("set rtp+=" .. os.getenv("LUASNIP_SOURCE"))
|
||||
|
||||
it("Correctly splits scopes with spaces.", function()
|
||||
local res =
|
||||
exec_lua([[return require("luasnip.loaders.util").scopestring_to_filetypes("javascript, typescript")]])
|
||||
local res = exec_lua(
|
||||
[[return require("luasnip.loaders.util").scopestring_to_filetypes("javascript, typescript")]]
|
||||
)
|
||||
assert.are.same({ "javascript", "typescript" }, res)
|
||||
local res =
|
||||
exec_lua([[return require("luasnip.loaders.util").scopestring_to_filetypes(" javascript, typescript")]])
|
||||
local res = exec_lua(
|
||||
[[return require("luasnip.loaders.util").scopestring_to_filetypes(" javascript, typescript")]]
|
||||
)
|
||||
assert.are.same({ "javascript", "typescript" }, res)
|
||||
local res =
|
||||
exec_lua([[return require("luasnip.loaders.util").scopestring_to_filetypes("javascript , typescript ")]])
|
||||
local res = exec_lua(
|
||||
[[return require("luasnip.loaders.util").scopestring_to_filetypes("javascript , typescript ")]]
|
||||
)
|
||||
assert.are.same({ "javascript", "typescript" }, res)
|
||||
end)
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue