diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-02-19 16:10:07 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2025-02-21 07:45:30 +0800 |
| commit | 145c2e720c1eb09093aaf006fcb4396dac44620c (patch) | |
| tree | 22ac7b1313197f3a7c2d5437f1b42093f50d6076 /test/functional/editor/completion_spec.lua | |
| parent | 07785ea9c5595f379f2cac2ce8ffa95244e3d8e3 (diff) | |
| download | rneovim-145c2e720c1eb09093aaf006fcb4396dac44620c.tar.gz rneovim-145c2e720c1eb09093aaf006fcb4396dac44620c.tar.bz2 rneovim-145c2e720c1eb09093aaf006fcb4396dac44620c.zip | |
test(completion_spec): make Enter test descriptions more accurate
Diffstat (limited to 'test/functional/editor/completion_spec.lua')
| -rw-r--r-- | test/functional/editor/completion_spec.lua | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/functional/editor/completion_spec.lua b/test/functional/editor/completion_spec.lua index fdf6917b53..39072ede9c 100644 --- a/test/functional/editor/completion_spec.lua +++ b/test/functional/editor/completion_spec.lua @@ -460,7 +460,7 @@ describe('completion', function() June]]) end) - it('Enter does not select original text', function() + it('Enter inserts newline at original text after adding leader', function() feed('iJ<C-x><C-u>') poke_eventloop() feed('u') @@ -506,21 +506,23 @@ describe('completion', function() ]]) end) - it('Enter selects original text after adding leader and insert newline', function() + it('Enter inserts newline at original text after adding leader', function() feed('iJ<C-x><C-u>') poke_eventloop() feed('u') poke_eventloop() feed('<CR>') - expect([[Ju -]]) + expect([[ + Ju + ]]) feed('<Esc>') poke_eventloop() -- The behavior should be the same when completion has been interrupted, -- which can happen interactively if the completion function is slow. feed('ggVGSJ<C-x><C-u>u<CR>') - expect([[Ju -]]) + expect([[ + Ju + ]]) end) end) |