From b2270e3092d33cba85d46516f3fb7fd0f92e5ca7 Mon Sep 17 00:00:00 2001 From: ewin Date: Wed, 5 Mar 2025 17:27:28 -0500 Subject: [PATCH] Add test ensuring text and content type are returned when deleting a status --- internal/api/client/statuses/statusdelete_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/api/client/statuses/statusdelete_test.go b/internal/api/client/statuses/statusdelete_test.go index 6f62ef45f..57bd3f94f 100644 --- a/internal/api/client/statuses/statusdelete_test.go +++ b/internal/api/client/statuses/statusdelete_test.go @@ -77,6 +77,10 @@ func (suite *StatusDeleteTestSuite) TestPostDelete() { suite.NoError(err) suite.NotNil(statusReply) + // Check that text and content type are returned for delete and redraft + suite.Equal("hello everyone!", statusReply.Text) + suite.Equal("text/plain", statusReply.ContentType) + if !testrig.WaitFor(func() bool { _, err := suite.db.GetStatusByID(ctx, targetStatus.ID) return errors.Is(err, db.ErrNoEntries)