mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 07:26:15 -06:00
Add test ensuring text and content type are returned when deleting a status
This commit is contained in:
parent
3872315db0
commit
b2270e3092
1 changed files with 4 additions and 0 deletions
|
|
@ -77,6 +77,10 @@ func (suite *StatusDeleteTestSuite) TestPostDelete() {
|
||||||
suite.NoError(err)
|
suite.NoError(err)
|
||||||
suite.NotNil(statusReply)
|
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 {
|
if !testrig.WaitFor(func() bool {
|
||||||
_, err := suite.db.GetStatusByID(ctx, targetStatus.ID)
|
_, err := suite.db.GetStatusByID(ctx, targetStatus.ID)
|
||||||
return errors.Is(err, db.ErrNoEntries)
|
return errors.Is(err, db.ErrNoEntries)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue