Skip to content
Myr

Add test case for --listen

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent cf69b83 · Browse files · 1 file+9 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−0 removed

  • tests:+9 added−0 removed

1 file+9 added−0 removed

modified:test/test_go.rb+9 added
5 unmodified lines
6require 'English'7require 'shellwords'8require 'erb'9require 'tempfile'10require 'net/http'1112TEMPLATE = DATA.read13UNSETS = %w[14 FZF_DEFAULT_COMMAND FZF_DEFAULT_OPTS
2420 unmodified lines
2435 tmux.until { |lines| assert_includes lines, '>>1' }2436 tmux.send_keys 'C-p'2437 tmux.until { |lines| assert_includes lines, '>>2' }2438 end24392440 def test_listen2441 tmux.send_keys 'seq 10 | fzf --listen 6266', :Enter2442 tmux.until { |lines| assert_equal 10, lines.item_count }2443 Net::HTTP.post(URI('http://localhost:6266'), 'change-query(yo)+reload(seq 100)+change-prompt:hundred> ')2444 tmux.until { |lines| assert_equal 100, lines.item_count }2445 tmux.until { |lines| assert_equal 'hundred> yo', lines[-1] }2446 end2447end24482449module TestShell2450 def setup
479 unmodified lines