diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/job/job_spec.lua | 6 | ||||
-rw-r--r-- | test/functional/ui/screen.lua | 22 |
2 files changed, 14 insertions, 14 deletions
diff --git a/test/functional/job/job_spec.lua b/test/functional/job/job_spec.lua index 259fa52443..1ba858251c 100644 --- a/test/functional/job/job_spec.lua +++ b/test/functional/job/job_spec.lua @@ -80,7 +80,7 @@ describe('jobs', function() nvim('command', "call jobstop(j)") end) - it('will not buffer data if it doesnt end in newlines', function() + it("will not buffer data if it doesn't end in newlines", function() nvim('command', "let j = jobstart(['cat', '-'], g:job_opts)") nvim('command', 'call jobsend(j, "abc\\nxyz")') eq({'notification', 'stdout', {0, {'abc', 'xyz'}}}, next_msg()) @@ -119,7 +119,7 @@ describe('jobs', function() eq({'notification', 'exit', {0, 0}}, next_msg()) end) - it('wont allow jobsend with a job that closed stdin', function() + it("won't allow jobsend with a job that closed stdin", function() nvim('command', "let j = jobstart(['cat', '-'], g:job_opts)") nvim('command', 'call jobclose(j, "stdin")') eq(false, pcall(function() @@ -356,7 +356,7 @@ describe('jobs', function() nvim('command', 'call jobsend(j, "'..str..'")') end - before_each(function() + before_each(function() -- the full path to tty-test seems to be required when running on travis. insert(nvim_dir .. '/tty-test') nvim('command', 'let g:job_opts.pty = 1') diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index ca6cac1ba3..9635f6119c 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -67,16 +67,16 @@ -- -- NonText = Screen.colors.Blue -- screen:expect([[ --- hello screen \ --- ~ \ --- ~ \ --- ~ \ --- ~ \ --- ~ \ --- ~ \ --- ~ \ --- ~ \ --- {b:-- INSERT --} \ +-- hello screen | +-- ~ | +-- ~ | +-- ~ | +-- ~ | +-- ~ | +-- ~ | +-- ~ | +-- ~ | +-- {b:-- INSERT --} | -- ]], {b = {bold = true}}, {{bold = true, foreground = NonText}}) -- -- In this case "b" is a string associated with the set composed of one @@ -221,7 +221,7 @@ function Screen:expect(expected, attr_ids, attr_ignore) local expected_row = expected_rows[i] local actual_row = self:_row_repr(self._rows[i], ids, ignore) if expected_row ~= actual_row then - return 'Row '..tostring(i)..' didnt match.\nExpected: "'.. + return 'Row '..tostring(i)..' didn\'t match.\nExpected: "'.. expected_row..'"\nActual: "'..actual_row..'"' end end |