1 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
4 import { cleanupTests, flushAndRunServer, ServerInfo } from '../../../../shared/extra-utils'
5 import { getVideosOverview } from '@shared/extra-utils/overviews/overviews'
7 describe('Test videos overview', function () {
10 // ---------------------------------------------------------------
12 before(async function () {
15 server = await flushAndRunServer(1)
18 describe('When getting videos overview', function () {
20 it('Should fail with a bad pagination', async function () {
21 await getVideosOverview(server.url, 0, 400)
22 await getVideosOverview(server.url, 100, 400)
25 it('Should succeed with a good pagination', async function () {
26 await getVideosOverview(server.url, 1)
30 after(async function () {
31 await cleanupTests([ server ])