mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
feat: export BatchMsg
There's no good reason to keep it private. Exporting it helps testability, debugging, and allows for a few special model.Update implementations.
This commit is contained in:
committed by
Christian Muehlhaeuser
parent
80f44c9384
commit
918d35746b
@@ -108,7 +108,7 @@ func TestTeaBatchMsg(t *testing.T) {
|
||||
m := &testModel{}
|
||||
p := NewProgram(m, WithInput(&in), WithOutput(&buf))
|
||||
go func() {
|
||||
p.Send(batchMsg{inc, inc})
|
||||
p.Send(BatchMsg{inc, inc})
|
||||
|
||||
for {
|
||||
time.Sleep(time.Millisecond)
|
||||
|
||||
Reference in New Issue
Block a user