summaryrefslogtreecommitdiff
path: root/internal/processing/account/alias_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/account/alias_test.go')
-rw-r--r--internal/processing/account/alias_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/processing/account/alias_test.go b/internal/processing/account/alias_test.go
index 9be5721aa..80fdb81c1 100644
--- a/internal/processing/account/alias_test.go
+++ b/internal/processing/account/alias_test.go
@@ -132,6 +132,17 @@ func (suite *AliasTestSuite) TestAliasAccount() {
"http://localhost:8080/users/admin",
},
},
+ // Alias zork to turtle using both URI and URL
+ // for turtle. Only URI should end up being used.
+ {
+ newAliases: []string{
+ "http://localhost:8080/users/1happyturtle",
+ "http://localhost:8080/@1happyturtle",
+ },
+ expectedAliases: []string{
+ "http://localhost:8080/users/1happyturtle",
+ },
+ },
} {
var (
ctx = context.Background()