aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/prompt_buffer_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-01-03 02:09:18 +0100
committerJustin M. Keyes <justinkz@gmail.com>2024-01-03 02:09:29 +0100
commit04f2f864e270e772c6326cefdf24947f0130e492 (patch)
tree46f83f909b888a66c741032ab955afc6eab84292 /test/functional/legacy/prompt_buffer_spec.lua
parent59d117ec99b6037cb9fad5bbfb6d0b18f5012927 (diff)
downloadrneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.gz
rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.bz2
rneovim-04f2f864e270e772c6326cefdf24947f0130e492.zip
refactor: format test/*
Diffstat (limited to 'test/functional/legacy/prompt_buffer_spec.lua')
-rw-r--r--test/functional/legacy/prompt_buffer_spec.lua26
1 files changed, 14 insertions, 12 deletions
diff --git a/test/functional/legacy/prompt_buffer_spec.lua b/test/functional/legacy/prompt_buffer_spec.lua
index ba594801cb..76c57a23b9 100644
--- a/test/functional/legacy/prompt_buffer_spec.lua
+++ b/test/functional/legacy/prompt_buffer_spec.lua
@@ -72,7 +72,7 @@ describe('prompt buffer', function()
-- oldtest: Test_prompt_basic()
it('works', function()
source_script()
- feed("hello\n")
+ feed('hello\n')
screen:expect([[
cmd: hello |
Command: "hello" |
@@ -83,7 +83,7 @@ describe('prompt buffer', function()
~ |*3
-- INSERT -- |
]])
- feed("exit\n")
+ feed('exit\n')
screen:expect([[
^other buffer |
~ |*8
@@ -94,7 +94,7 @@ describe('prompt buffer', function()
-- oldtest: Test_prompt_editing()
it('editing', function()
source_script()
- feed("hello<BS><BS>")
+ feed('hello<BS><BS>')
screen:expect([[
cmd: hel^ |
~ |*3
@@ -103,7 +103,7 @@ describe('prompt buffer', function()
~ |*3
-- INSERT -- |
]])
- feed("<Left><Left><Left><BS>-")
+ feed('<Left><Left><Left><BS>-')
screen:expect([[
cmd: -^hel |
~ |*3
@@ -112,7 +112,7 @@ describe('prompt buffer', function()
~ |*3
-- INSERT -- |
]])
- feed("<C-O>lz")
+ feed('<C-O>lz')
screen:expect([[
cmd: -hz^el |
~ |*3
@@ -121,7 +121,7 @@ describe('prompt buffer', function()
~ |*3
-- INSERT -- |
]])
- feed("<End>x")
+ feed('<End>x')
screen:expect([[
cmd: -hzelx^ |
~ |*3
@@ -130,7 +130,7 @@ describe('prompt buffer', function()
~ |*3
-- INSERT -- |
]])
- feed("<C-U>exit\n")
+ feed('<C-U>exit\n')
screen:expect([[
^other buffer |
~ |*8
@@ -141,16 +141,18 @@ describe('prompt buffer', function()
-- oldtest: Test_prompt_switch_windows()
it('switch windows', function()
source_script()
- feed("<C-O>:call SwitchWindows()<CR>")
- screen:expect{grid=[[
+ feed('<C-O>:call SwitchWindows()<CR>')
+ screen:expect {
+ grid = [[
cmd: |
~ |*3
[Prompt] [+] |
^other buffer |
~ |*3
|
- ]]}
- feed("<C-O>:call SwitchWindows()<CR>")
+ ]],
+ }
+ feed('<C-O>:call SwitchWindows()<CR>')
screen:expect([[
cmd: ^ |
~ |*3
@@ -159,7 +161,7 @@ describe('prompt buffer', function()
~ |*3
-- INSERT -- |
]])
- feed("<Esc>")
+ feed('<Esc>')
screen:expect([[
cmd:^ |
~ |*3