@@ -95,9 +95,9 @@ describe("Job", function()
95
95
it (" should return last line when there is ending newline" , function ()
96
96
local results = {}
97
97
local job = Job :new {
98
- command = " echo " ,
98
+ command = " printf " ,
99
99
100
- args = { " -e " , " test1\n test2" },
100
+ args = { " test1\n test2\n " },
101
101
102
102
on_stdout = function (_ , data )
103
103
table.insert (results , data )
@@ -113,9 +113,9 @@ describe("Job", function()
113
113
pending (" should return last line when there is no ending newline" , function ()
114
114
local results = {}
115
115
local job = Job :new {
116
- command = " echo " ,
116
+ command = " printf " ,
117
117
118
- args = { " -en " , " test1\n test2" },
118
+ args = { " test1\n test2" },
119
119
120
120
on_stdout = function (_ , data )
121
121
table.insert (results , data )
@@ -277,11 +277,12 @@ describe("Job", function()
277
277
end )
278
278
279
279
it (" should match larger systemlist" , function ()
280
- local results = vim .fn .systemlist " find"
280
+ local results = vim .fn .systemlist " find . "
281
281
local stdout_results = {}
282
282
283
283
local job = Job :new {
284
284
command = " find" ,
285
+ args = { " ." },
285
286
286
287
on_stdout = function (_ , line )
287
288
table.insert (stdout_results , line )
0 commit comments