elvish/pkg/edit/minibuf_test.go
2019-12-23 20:00:59 +00:00

25 lines
381 B
Go

package edit
import (
"testing"
"github.com/elves/elvish/pkg/cli/term"
)
func TestMinibuf(t *testing.T) {
f := setup()
defer f.Cleanup()
evals(f.Evaler, `edit:minibuf:start`)
f.TestTTY(t,
"~> \n",
" MINIBUF ", Styles,
"********* ", term.DotHere,
)
feedInput(f.TTYCtrl, "edit:insert-at-dot put\n")
f.TestTTY(t,
"~> put", Styles,
" vvv", term.DotHere,
)
}