summaryrefslogtreecommitdiff
path: root/internal/typeutils/internaltoas_test.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-06-11 11:54:59 +0200
committerLibravatar GitHub <noreply@github.com>2024-06-11 11:54:59 +0200
commit611f9de39b7a29e89616c9ffe76d2aca1194877b (patch)
treec5792f5c4c21070b608e0bb3b743edffbd190074 /internal/typeutils/internaltoas_test.go
parent[bugfix] boost and account recursion (#2982) (diff)
downloadgotosocial-611f9de39b7a29e89616c9ffe76d2aca1194877b.tar.xz
[bugfix] Deref stats async, serve stub collections if handshaking (#2990)v0.16.0-rc2
* [bugfix] Deref stats async, allow peek if handshaking * don't return totalItems when handshaking or hiding collections * use GetLimit() * use StubAccountStats
Diffstat (limited to 'internal/typeutils/internaltoas_test.go')
-rw-r--r--internal/typeutils/internaltoas_test.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/internal/typeutils/internaltoas_test.go b/internal/typeutils/internaltoas_test.go
index 740938220..26e86c516 100644
--- a/internal/typeutils/internaltoas_test.go
+++ b/internal/typeutils/internaltoas_test.go
@@ -366,27 +366,6 @@ func (suite *InternalToASTestSuite) TestAccountToASWithSharedInbox() {
}`, trimmed)
}
-func (suite *InternalToASTestSuite) TestOutboxToASCollection() {
- testAccount := suite.testAccounts["admin_account"]
- ctx := context.Background()
-
- collection, err := suite.typeconverter.OutboxToASCollection(ctx, testAccount.OutboxURI)
- suite.NoError(err)
-
- ser, err := ap.Serialize(collection)
- suite.NoError(err)
-
- bytes, err := json.MarshalIndent(ser, "", " ")
- suite.NoError(err)
-
- suite.Equal(`{
- "@context": "https://www.w3.org/ns/activitystreams",
- "first": "http://localhost:8080/users/admin/outbox?page=true",
- "id": "http://localhost:8080/users/admin/outbox",
- "type": "OrderedCollection"
-}`, string(bytes))
-}
-
func (suite *InternalToASTestSuite) TestStatusToAS() {
testStatus := suite.testStatuses["local_account_1_status_1"]
ctx := context.Background()