Skip to content
Snippets Groups Projects
Unverified Commit 88ac3971 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Add test case for --no-clear

parent 6fd4be58
No related branches found
No related tags found
No related merge requests found
......@@ -1296,6 +1296,14 @@ class TestGoFZF < TestBase
tmux.until { |lines| lines[4] == '> 3' }
tmux.until { |_| %w[1 2 3] == File.readlines(tempname).map(&:chomp) }
end
def test_no_clear
tmux.send_keys 'seq 100 | fzf --no-clear --inline-info --height 5', :Enter
prompt = '> < 100/100'
tmux.until { |lines| lines[-1] == prompt }
tmux.send_keys :Enter
tmux.until { |lines| lines[-2] == prompt && lines[-1] == '1' }
end
end
module TestShell
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment