X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Futils%2Fusers%2Faccounts.ts;h=30b3c54f8ec29b2c2cdc72e401968cb8ac1e34bd;hb=ad9e39fb815d85e5e718c40540fa75471474fa17;hp=a5c13c319a7d11bda561d6ebe9c05e3b2dd494d6;hpb=f05a1c30c15d2ae35c11e241ca039a72eeb7d6ad;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/utils/users/accounts.ts b/server/tests/utils/users/accounts.ts index a5c13c319..30b3c54f8 100644 --- a/server/tests/utils/users/accounts.ts +++ b/server/tests/utils/users/accounts.ts @@ -19,8 +19,8 @@ function getAccountsList (url: string, sort = '-createdAt', statusCodeExpected = }) } -function getAccount (url: string, accountId: number | string, statusCodeExpected = 200) { - const path = '/api/v1/accounts/' + accountId +function getAccount (url: string, accountName: string, statusCodeExpected = 200) { + const path = '/api/v1/accounts/' + accountName return makeGetRequest({ url,