Skip to content

Commit

Permalink
fix(tests): single batch cmd
Browse files Browse the repository at this point in the history
Fixes: 305d5b2 (chore: optimize batches with one item (#875))
  • Loading branch information
aymanbagabas committed Mar 1, 2024
1 parent c9d109a commit d5e92c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ func TestBatch(t *testing.T) {
})
t.Run("single cmd", func(t *testing.T) {
b := Batch(Quit)()
if l := len(b.(BatchMsg)); l != 1 {
t.Fatalf("expected a []Cmd with len 1, got %d", l)
if _, ok := b.(QuitMsg); !ok {
t.Fatalf("expected a QuitMsg, got %T", b)
}
})
t.Run("mixed nil cmds", func(t *testing.T) {
Expand Down

0 comments on commit d5e92c9

Please sign in to comment.