diff options
Diffstat (limited to 'server/tests/utils/users/user-subscriptions.ts')
-rw-r--r-- | server/tests/utils/users/user-subscriptions.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/server/tests/utils/users/user-subscriptions.ts b/server/tests/utils/users/user-subscriptions.ts index 852f590cf..b0e7da7cc 100644 --- a/server/tests/utils/users/user-subscriptions.ts +++ b/server/tests/utils/users/user-subscriptions.ts | |||
@@ -58,9 +58,22 @@ function removeUserSubscription (url: string, token: string, uri: string, status | |||
58 | }) | 58 | }) |
59 | } | 59 | } |
60 | 60 | ||
61 | function areSubscriptionsExist (url: string, token: string, uris: string[], statusCodeExpected = 200) { | ||
62 | const path = '/api/v1/users/me/subscriptions/exist' | ||
63 | |||
64 | return makeGetRequest({ | ||
65 | url, | ||
66 | path, | ||
67 | query: { 'uris[]': uris }, | ||
68 | token, | ||
69 | statusCodeExpected | ||
70 | }) | ||
71 | } | ||
72 | |||
61 | // --------------------------------------------------------------------------- | 73 | // --------------------------------------------------------------------------- |
62 | 74 | ||
63 | export { | 75 | export { |
76 | areSubscriptionsExist, | ||
64 | addUserSubscription, | 77 | addUserSubscription, |
65 | listUserSubscriptions, | 78 | listUserSubscriptions, |
66 | getUserSubscription, | 79 | getUserSubscription, |