diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-12-04 20:34:41 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-12-04 20:34:41 +0900 |
commit | 6d647e13ff1d953e6f8284046a86f0babe78150b (patch) | |
tree | 828aa4d5c086beedb1d472187ef459510762d24c /test | |
parent | d2af3ff98d427d797be809505661aeb84e65e4c7 (diff) |
Add change-prompt action
Close #2270
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_go.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 3ff118c1..13b1ee47 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -1823,6 +1823,15 @@ class TestGoFZF < TestBase tmux.until { |lines| lines.item_count == 100 } tmux.until { |lines| lines[1]&.include?('[200]') } end + + def test_change_prompt + tmux.send_keys "#{FZF} --bind 'a:change-prompt(a> ),b:change-prompt:b> ' --query foo", :Enter + tmux.until { |lines| assert_equal '> foo', lines[-1] } + tmux.send_keys 'a' + tmux.until { |lines| assert_equal 'a> foo', lines[-1] } + tmux.send_keys 'b' + tmux.until { |lines| assert_equal 'c> foo', lines[-1] } + end end module TestShell |