1 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
4 import { cleanupTests, createSingleServer, PeerTubeServer } from '@shared/extra-utils'
6 describe('Test videos overview', function () {
7 let server: PeerTubeServer
9 // ---------------------------------------------------------------
11 before(async function () {
14 server = await createSingleServer(1)
17 describe('When getting videos overview', function () {
19 it('Should fail with a bad pagination', async function () {
20 await server.overviews.getVideos({ page: 0, expectedStatus: 400 })
21 await server.overviews.getVideos({ page: 100, expectedStatus: 400 })
24 it('Should succeed with a good pagination', async function () {
25 await server.overviews.getVideos({ page: 1 })
29 after(async function () {
30 await cleanupTests([ server ])