api: always return empty string as api type String

This commit is contained in:
Björn Linse
2015-02-12 19:16:25 +01:00
committed by Justin M. Keyes
parent f56d1dc838
commit f4f0f646c3
2 changed files with 3 additions and 5 deletions

View File

@@ -191,7 +191,7 @@ describe('system()', function()
if xclip then
describe("with a program that doesn't close stdout", function()
it('will exit properly after passing input', function()
eq(nil, eval([[system('xclip -i -selection clipboard', 'clip-data')]]))
eq('', eval([[system('xclip -i -selection clipboard', 'clip-data')]]))
eq('clip-data', eval([[system('xclip -o -selection clipboard')]]))
end)
end)