X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fcheck-params%2Faccounts.ts;h=567fd072ca8c011bf1eb33dd9934c43d0dbda5f4;hb=ae28cdf327d782e629379eee1999096ca2a5d74b;hp=351228754d53f21f17fd31e005c77e0484a31636;hpb=265ba139ebf56bbdc1c65f6ea4f367774c691fc0;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/check-params/accounts.ts b/server/tests/api/check-params/accounts.ts index 351228754..567fd072c 100644 --- a/server/tests/api/check-params/accounts.ts +++ b/server/tests/api/check-params/accounts.ts @@ -2,9 +2,13 @@ import 'mocha' -import { flushTests, killallServers, runServer, ServerInfo } from '../../utils' -import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination } from '../../utils/requests/check-api-params' -import { getAccount } from '../../utils/users/accounts' +import { flushTests, killallServers, runServer, ServerInfo } from '../../../../shared/utils' +import { + checkBadCountPagination, + checkBadSortPagination, + checkBadStartPagination +} from '../../../../shared/utils/requests/check-api-params' +import { getAccount } from '../../../../shared/utils/users/accounts' describe('Test users API validators', function () { const path = '/api/v1/accounts/' @@ -13,7 +17,7 @@ describe('Test users API validators', function () { // --------------------------------------------------------------- before(async function () { - this.timeout(20000) + this.timeout(30000) await flushTests() @@ -35,8 +39,8 @@ describe('Test users API validators', function () { }) describe('When getting an account', function () { - it('Should return 404 with a non existing id', async function () { - await getAccount(server.url, 4545454, 404) + it('Should return 404 with a non existing name', async function () { + await getAccount(server.url, 'arfaze', 404) }) })