mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Started to add a test
This commit is contained in:
parent
b6396ea2eb
commit
1535f1f3e5
1 changed files with 19 additions and 0 deletions
19
spec/integrations/vicmd_partial_accept_spec.rb
Normal file
19
spec/integrations/vicmd_partial_accept_spec.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
describe 'a vicmd mode partial-accept widget' do
|
||||
let(:widget) { 'vi-forward-word-end' }
|
||||
|
||||
context 'in vicmd mode' do
|
||||
# -> do
|
||||
# let(:before_sourcing) do
|
||||
# session.
|
||||
# end
|
||||
# end
|
||||
|
||||
it 'moves the cursor through suggestion as expected' do
|
||||
session.run_command("bindkey s vi-cmd-mode")
|
||||
with_history('foobar foo') do
|
||||
session.send_string('fo').send_keys('s').send_keys('e')
|
||||
wait_for { session.content }.to eq('foobar')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue