diff options
author | 2023-11-20 12:22:28 +0000 | |
---|---|---|
committer | 2023-11-20 12:22:28 +0000 | |
commit | 16275853eb8a43e0b113d476b896de53585c1281 (patch) | |
tree | b2e0e6b4fc7cd4f1cc781e5c305ec24df38e6718 /internal/ap/activitystreams_test.go | |
parent | [chore]: Bump github.com/tdewolff/minify/v2 from 2.20.6 to 2.20.7 (#2370) (diff) | |
download | gotosocial-16275853eb8a43e0b113d476b896de53585c1281.tar.xz |
[bugfix] self-referencing collection pages for status replies (#2364)
Diffstat (limited to 'internal/ap/activitystreams_test.go')
-rw-r--r-- | internal/ap/activitystreams_test.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/ap/activitystreams_test.go b/internal/ap/activitystreams_test.go index ee03f9b0f..d769fa42f 100644 --- a/internal/ap/activitystreams_test.go +++ b/internal/ap/activitystreams_test.go @@ -49,6 +49,7 @@ func TestASCollection(t *testing.T) { // Create new collection using builder function. c := ap.NewASCollection(ap.CollectionParams{ ID: parseURI(idURI), + Query: url.Values{"limit": []string{"40"}}, Total: total, }) @@ -56,7 +57,7 @@ func TestASCollection(t *testing.T) { s := toJSON(c) // Ensure outputs are equal. - assert.Equal(t, s, expect) + assert.Equal(t, expect, s) } func TestASCollectionPage(t *testing.T) { @@ -110,7 +111,7 @@ func TestASCollectionPage(t *testing.T) { s := toJSON(p) // Ensure outputs are equal. - assert.Equal(t, s, expect) + assert.Equal(t, expect, s) } func TestASOrderedCollection(t *testing.T) { @@ -131,6 +132,7 @@ func TestASOrderedCollection(t *testing.T) { // Create new collection using builder function. c := ap.NewASOrderedCollection(ap.CollectionParams{ ID: parseURI(idURI), + Query: url.Values{"limit": []string{"40"}}, Total: total, }) @@ -138,7 +140,7 @@ func TestASOrderedCollection(t *testing.T) { s := toJSON(c) // Ensure outputs are equal. - assert.Equal(t, s, expect) + assert.Equal(t, expect, s) } func TestASOrderedCollectionPage(t *testing.T) { @@ -192,7 +194,7 @@ func TestASOrderedCollectionPage(t *testing.T) { s := toJSON(p) // Ensure outputs are equal. - assert.Equal(t, s, expect) + assert.Equal(t, expect, s) } func parseURI(s string) *url.URL { |