mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 00:52:44 +00:00
Resolve issues mentioned in PR review
This commit is contained in:
@@ -297,10 +297,6 @@ describe('jobs', function()
|
|||||||
eq({'notification', 'exit', {data, 0}}, next_msg())
|
eq({'notification', 'exit', {data, 0}}, next_msg())
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('can omit options', function()
|
|
||||||
ok(eval([[jobstart('echo ""')]]) > 0)
|
|
||||||
end)
|
|
||||||
|
|
||||||
it('can omit data callbacks', function()
|
it('can omit data callbacks', function()
|
||||||
nvim('command', 'unlet g:job_opts.on_stdout')
|
nvim('command', 'unlet g:job_opts.on_stdout')
|
||||||
nvim('command', 'let g:job_opts.user = 5')
|
nvim('command', 'let g:job_opts.user = 5')
|
||||||
|
|||||||
@@ -280,7 +280,6 @@ describe("getcwd()", function ()
|
|||||||
|
|
||||||
it("returns empty string if working directory does not exist", function()
|
it("returns empty string if working directory does not exist", function()
|
||||||
if helpers.iswin() then
|
if helpers.iswin() then
|
||||||
pending('[Cannot delete working directory in Windows]')
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
command("cd "..directories.global)
|
command("cd "..directories.global)
|
||||||
|
|||||||
@@ -88,7 +88,6 @@ describe(':write', function()
|
|||||||
command('let $HOME=""')
|
command('let $HOME=""')
|
||||||
eq(funcs.fnamemodify('.', ':p:h'), funcs.fnamemodify('.', ':p:h:~'))
|
eq(funcs.fnamemodify('.', ':p:h'), funcs.fnamemodify('.', ':p:h:~'))
|
||||||
-- Message from check_overwrite
|
-- Message from check_overwrite
|
||||||
-- FIXME: 'E13: File exists (add ! to override)' in Windows
|
|
||||||
if not helpers.iswin() then
|
if not helpers.iswin() then
|
||||||
eq(('\nE17: "'..funcs.fnamemodify('.', ':p:h')..'" is a directory'),
|
eq(('\nE17: "'..funcs.fnamemodify('.', ':p:h')..'" is a directory'),
|
||||||
redir_exec('write .'))
|
redir_exec('write .'))
|
||||||
|
|||||||
Reference in New Issue
Block a user