bubbletea/nil_renderer_test.go

17 lines
242 B
Go

package tea
import "testing"
func TestNilRenderer(t *testing.T) {
r := nilRenderer{}
r.start()
r.stop()
r.kill()
r.write("a")
r.repaint()
r.enterAltScreen()
if r.altScreen() {
t.Errorf("altScreen should always return false")
}
}