mirror of
https://github.com/aykhans/slash-e.git
synced 2025-06-15 12:27:49 +00:00
chore: fix collection service
This commit is contained in:
@ -30,12 +30,15 @@ func TestCollectionStore(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 1, len(collections))
|
||||
require.Equal(t, collection, collections[0])
|
||||
newTitle := "My new collection"
|
||||
newShortcutIds := []int32{101, 103}
|
||||
updatedCollection, err := ts.UpdateCollection(ctx, &store.UpdateCollection{
|
||||
ID: collection.Id,
|
||||
Title: &newTitle,
|
||||
ShortcutIDs: newShortcutIds,
|
||||
})
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, newTitle, updatedCollection.Title)
|
||||
require.Equal(t, newShortcutIds, updatedCollection.ShortcutIds)
|
||||
err = ts.DeleteCollection(ctx, &store.DeleteCollection{
|
||||
ID: collection.Id,
|
||||
|
Reference in New Issue
Block a user