Skip to content

Commit e6698c7

Browse files
committed
Used new aliases and removed test specific code
Now that we have hostames which look like real hostnames in tests we're able to remove test specific handling for the `isHandle` function. This also switches us to use the new aliases everywhere in the tests for consistency
1 parent e76a148 commit e6698c7

File tree

3 files changed

+77
-85
lines changed

3 files changed

+77
-85
lines changed

features/account.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ Feature: Account API
1414
And the response contains "Our" account details
1515

1616
Scenario: Get account by handle
17-
When an authenticated "get" request is made to "/.ghost/activitypub/account/@Alice@fake-external-activitypub"
17+
When an authenticated "get" request is made to "/.ghost/activitypub/account/@Alice@fake-external-activitypub.test"
1818
Then the request is accepted with a 200
1919
And the response contains "Alice" account details
2020

2121
Scenario: Get non-existent account
22-
When an authenticated "get" request is made to "/.ghost/activitypub/account/@nonexistent@fake-external-activitypub"
22+
When an authenticated "get" request is made to "/.ghost/activitypub/account/@nonexistent@fake-external-activitypub.test"
2323
Then the request is rejected with a 500
2424

2525
Scenario: Get account without authentication

0 commit comments

Comments
 (0)