feat(clientcache): update created time in target repository

llb-desktop-client-sort-backup
Sepehr 4 months ago
parent 6915c73061
commit c4159ce05d

@ -368,7 +368,7 @@ func TestRepository_ListTargets(t *testing.T) {
})
t.Run("withSortBy bad SortBy errors", func(t *testing.T) {
_, err := r.ListTargets(ctx, kt1.AuthTokenId, WithSort(SortByCreatedAt, Descending, []SortBy{SortByName}))
_, err := r.ListTargets(ctx, kt1.AuthTokenId, WithSort(SortByCreatedTime, Descending, []SortBy{SortByName}))
assert.Error(t, err)
})
@ -555,7 +555,7 @@ func TestRepository_QueryTargets(t *testing.T) {
})
t.Run("withSortBy bad SortBy errors", func(t *testing.T) {
_, err := r.QueryTargets(ctx, kt1.AuthTokenId, query, WithSort(SortByCreatedAt, Descending, []SortBy{SortByName}))
_, err := r.QueryTargets(ctx, kt1.AuthTokenId, query, WithSort(SortByCreatedTime, Descending, []SortBy{SortByName}))
assert.Error(t, err)
})

Loading…
Cancel
Save