Update NewRepositoryID with case for following repo

This commit is contained in:
erik 2024-05-28 12:54:49 +02:00
commit 75c93e5319
3 changed files with 14 additions and 7 deletions

View file

@ -52,7 +52,7 @@ func TestNewRepositoryId(t *testing.T) {
expected.Host = "localhost"
expected.Port = "3000"
expected.UnvalidatedInput = "http://localhost:3000/api/activitypub/repository-id/1"
sut, _ := NewRepositoryID("http://localhost:3000/api/activitypub/repository-id/1", "forgejo")
sut, _ := NewRepositoryID("http://localhost:3000/api/activitypub/repository-id/1", "forgejo", false)
if sut != expected {
t.Errorf("expected: %v\n but was: %v\n", expected, sut)
}