Skip to content

Commit 15a28f4

Browse files
committed
fix(tests): fix history/app tests
1 parent daa903e commit 15a28f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/model/history_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func TestHistory(t *testing.T) {
1717
h.Push(fmt.Sprintf("cmd%d", i))
1818
}
1919

20-
assert.Equal(t, []string{"cmd4", "cmd3", "cmd2"}, h.List())
20+
assert.Equal(t, []string{"cmd1", "cmd2", "cmd3"}, h.List())
2121
h.Clear()
2222
assert.True(t, h.Empty())
2323
}
@@ -30,5 +30,5 @@ func TestHistoryDups(t *testing.T) {
3030
h.Push("cmd1")
3131
h.Push("")
3232

33-
assert.Equal(t, []string{"cmd3", "cmd2", "cmd1"}, h.List())
33+
assert.Equal(t, []string{"cmd1", "cmd2", "cmd3", "cmd1"}, h.List())
3434
}

internal/view/app_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ func TestAppNew(t *testing.T) {
1515
a := view.NewApp(mock.NewMockConfig())
1616
_ = a.Init("blee", 10)
1717

18-
assert.Equal(t, 14, a.GetActions().Len())
18+
assert.Equal(t, 15, a.GetActions().Len())
1919
}

0 commit comments

Comments
 (0)