bubbletea/nil_renderer_test.go

17 lines
242 B
Go
Raw Normal View History

2021-11-01 14:59:59 -04:00
package tea
import "testing"
func TestNilRenderer(t *testing.T) {
r := nilRenderer{}
r.start()
r.stop()
r.kill()
r.write("a")
r.repaint()
2022-10-03 18:04:05 -04:00
r.enterAltScreen()
2021-11-01 14:59:59 -04:00
if r.altScreen() {
t.Errorf("altScreen should always return false")
}
}