mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
docs: misc #31479
This commit is contained in:
@@ -469,7 +469,7 @@ describe('vim.fs', function()
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('abspath', function()
|
||||
describe('abspath()', function()
|
||||
local cwd = is_os('win') and vim.uv.cwd():gsub('\\', '/') or vim.uv.cwd()
|
||||
local home = is_os('win') and vim.uv.os_homedir():gsub('\\', '/') or vim.uv.os_homedir()
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ describe('vim.json.encode()', function()
|
||||
clear()
|
||||
end)
|
||||
|
||||
it('dumps strings with & without escaped slash', function()
|
||||
it('escape_slash', function()
|
||||
-- With slash
|
||||
eq('"Test\\/"', exec_lua([[return vim.json.encode('Test/', { escape_slash = true })]]))
|
||||
eq(
|
||||
|
||||
Reference in New Issue
Block a user