Skip to content
Myr

fix(tests): single batch cmd (#935)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ayman Bagabas · committed by GitHub · parent c9d109a · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Fixes: 305d5b285f4b (chore: optimize batches with one item (#875))

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:commands_test.go+2 added-2 removed
92 unmodified lines
93 }94 })95 t.Run("single cmd", func(t *testing.T) {96 b := Batch(Quit)()97 if l := len(b.(BatchMsg)); l != 1 {98 t.Fatalf("expected a []Cmd with len 1, got %d", l)97 if _, ok := b.(QuitMsg); !ok {98 t.Fatalf("expected a QuitMsg, got %T", b)99 }100 })101 t.Run("mixed nil cmds", func(t *testing.T) {102 b := Batch(nil, Quit, nil, Quit, nil, nil)()
5 unmodified lines