X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fcheck-params%2Fvideo-blacklist.ts;h=4dc84d3f25e7e122d2f5dd3a3a67d8f9d60856be;hb=2fe978744e5b74eb824e4d79c1bb9b840169f125;hp=1f926d227574149c4c57f6f63f22c43cc5be171d;hpb=9e8789497377cac5554a622da605f5b89587aa9c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/check-params/video-blacklist.ts b/server/tests/api/check-params/video-blacklist.ts index 1f926d227..4dc84d3f2 100644 --- a/server/tests/api/check-params/video-blacklist.ts +++ b/server/tests/api/check-params/video-blacklist.ts @@ -1,12 +1,10 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import { expect } from 'chai' +import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination } from '@server/tests/shared' +import { HttpStatusCode, VideoBlacklistType } from '@shared/models' import { BlacklistCommand, - checkBadCountPagination, - checkBadSortPagination, - checkBadStartPagination, cleanupTests, createMultipleServers, doubleFollow, @@ -15,8 +13,7 @@ import { PeerTubeServer, setAccessTokensToServers, waitJobs -} from '@shared/extra-utils' -import { HttpStatusCode, VideoBlacklistType } from '@shared/models' +} from '@shared/server-commands' describe('Test video blacklist API validators', function () { let servers: PeerTubeServer[] @@ -39,14 +36,14 @@ describe('Test video blacklist API validators', function () { { const username = 'user1' const password = 'my super password' - await servers[0].users.create({ username: username, password: password }) + await servers[0].users.create({ username, password }) userAccessToken1 = await servers[0].login.getAccessToken({ username, password }) } { const username = 'user2' const password = 'my super password' - await servers[0].users.create({ username: username, password: password }) + await servers[0].users.create({ username, password }) userAccessToken2 = await servers[0].login.getAccessToken({ username, password }) }