mirror of
https://github.com/junegunn/fzf.git
synced 2026-02-21 17:18:47 +08:00
Fix test case
This commit is contained in:
@@ -387,9 +387,9 @@ class TestPreview < TestInteractive
|
|||||||
tmux.send_keys "seq 1 | #{FZF} --preview 'seq 1000' --preview-window right,2,follow,wrap", :Enter
|
tmux.send_keys "seq 1 | #{FZF} --preview 'seq 1000' --preview-window right,2,follow,wrap", :Enter
|
||||||
tmux.until { |lines| assert_equal 1, lines.match_count }
|
tmux.until { |lines| assert_equal 1, lines.match_count }
|
||||||
tmux.until do |lines|
|
tmux.until do |lines|
|
||||||
assert_includes lines[-4], '│ 10 │'
|
idx = lines.rindex { it.include?('│ 10 │') }
|
||||||
assert_includes lines[-3], '│ ↳ │'
|
assert_includes lines[idx + 1], '│ ↳ │'
|
||||||
assert_includes lines[-2], '│ ↳ │'
|
assert_includes lines[idx + 2], '│ ↳ │'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user