mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
feat: use Termenv.Output to write to tty
This commit is contained in:
@@ -9,8 +9,8 @@ func TestOptions(t *testing.T) {
|
||||
t.Run("output", func(t *testing.T) {
|
||||
var b bytes.Buffer
|
||||
p := NewProgram(nil, WithOutput(&b))
|
||||
if p.output != &b {
|
||||
t.Errorf("expected output to custom, got %v", p.output)
|
||||
if p.output.TTY() != nil {
|
||||
t.Errorf("expected output to custom, got %v", p.output.TTY().Fd())
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user