From 477ae50933ab7447757752ec35bf898db287acff Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 9 Dec 2022 05:37:12 -0500 Subject: [feature] Allow users to create + delete bookbarks, and view bookmarked statuses (#1168) * Implement Bookmarks * Update based on review comments * Update swagger doc * Fix argument passing to status.Bookmark * Update changed test * Updates based on latest PR review --- internal/db/bundb/account_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/db/bundb/account_test.go') diff --git a/internal/db/bundb/account_test.go b/internal/db/bundb/account_test.go index bf85f14f4..e63956f87 100644 --- a/internal/db/bundb/account_test.go +++ b/internal/db/bundb/account_test.go @@ -208,6 +208,12 @@ func (suite *AccountTestSuite) TestInsertAccountWithDefaults() { suite.False(*newAccount.HideCollections) } +func (suite *AccountTestSuite) TestGettingBookmarksWithNoAccount() { + statuses, err := suite.db.GetBookmarks(context.Background(), "", 10, "", "") + suite.Error(err) + suite.Nil(statuses) +} + func TestAccountTestSuite(t *testing.T) { suite.Run(t, new(AccountTestSuite)) } -- cgit v1.2.3