Skip to content

Commit

Permalink
fix(tests): fix history/app tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyzbit committed Sep 24, 2024
1 parent daa903e commit 15a28f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/model/history_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestHistory(t *testing.T) {
h.Push(fmt.Sprintf("cmd%d", i))
}

assert.Equal(t, []string{"cmd4", "cmd3", "cmd2"}, h.List())
assert.Equal(t, []string{"cmd1", "cmd2", "cmd3"}, h.List())
h.Clear()
assert.True(t, h.Empty())
}
Expand All @@ -30,5 +30,5 @@ func TestHistoryDups(t *testing.T) {
h.Push("cmd1")
h.Push("")

assert.Equal(t, []string{"cmd3", "cmd2", "cmd1"}, h.List())
assert.Equal(t, []string{"cmd1", "cmd2", "cmd3", "cmd1"}, h.List())
}
2 changes: 1 addition & 1 deletion internal/view/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ func TestAppNew(t *testing.T) {
a := view.NewApp(mock.NewMockConfig())
_ = a.Init("blee", 10)

assert.Equal(t, 14, a.GetActions().Len())
assert.Equal(t, 15, a.GetActions().Len())
}

0 comments on commit 15a28f4

Please sign in to comment.