X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fcheck-params%2Fusers-admin.ts;h=d8353f83bd899ccfcbdd08f477187962cb561529;hb=4ec52d04dcc5d664612331f8e08d7d90da990415;hp=f71414a6b682ee7a97457f4ebddd469fa782033c;hpb=906f46d0849fac3e2b30b7bdd57759e189d6a35d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/check-params/users-admin.ts b/server/tests/api/check-params/users-admin.ts index f71414a6b..d8353f83b 100644 --- a/server/tests/api/check-params/users-admin.ts +++ b/server/tests/api/check-params/users-admin.ts @@ -2,21 +2,18 @@ import 'mocha' import { omit } from 'lodash' +import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination, MockSmtpServer } from '@server/tests/shared' +import { HttpStatusCode, UserAdminFlag, UserRole } from '@shared/models' import { - checkBadCountPagination, - checkBadSortPagination, - checkBadStartPagination, cleanupTests, createSingleServer, killallServers, makeGetRequest, makePostBodyRequest, makePutBodyRequest, - MockSmtpServer, PeerTubeServer, setAccessTokensToServers -} from '@shared/extra-utils' -import { HttpStatusCode, UserAdminFlag, UserRole } from '@shared/models' +} from '@shared/server-commands' describe('Test users admin API validators', function () { const path = '/api/v1/users/'