test: execute_spec: Adjust screen assertion.

The previous form was passing because it happens immediately before this form;
 but on a very fast(?) server the screen check might miss that form. It's also
 not really want we want to assert anyways.
This commit is contained in:
Justin M. Keyes 2016-10-15 22:16:17 +02:00
parent 3a2903c836
commit 97caabc49a

View File

@ -70,16 +70,16 @@ describe('execute()', function()
end)
it('silences command run inside', function()
local screen = Screen.new(20, 5)
local screen = Screen.new(40, 5)
screen:attach()
screen:set_default_attr_ids( {[0] = {bold=true, foreground=255}} )
feed(':let g:mes = execute("echon 42")<CR>')
screen:expect([[
^ |
{0:~ }|
{0:~ }|
{0:~ }|
|
^ |
{0:~ }|
{0:~ }|
{0:~ }|
:let g:mes = execute("echon 42") |
]])
eq('42', eval('g:mes'))
end)