aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/video-nsfw.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/videos/video-nsfw.ts')
-rw-r--r--server/tests/api/videos/video-nsfw.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/tests/api/videos/video-nsfw.ts b/server/tests/api/videos/video-nsfw.ts
index cfa130043..65e9c8730 100644
--- a/server/tests/api/videos/video-nsfw.ts
+++ b/server/tests/api/videos/video-nsfw.ts
@@ -1,11 +1,9 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2
3import * as chai from 'chai' 3import { expect } from 'chai'
4import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands' 4import { cleanupTests, createSingleServer, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands'
5import { BooleanBothQuery, CustomConfig, ResultList, Video, VideosOverview } from '@shared/models' 5import { BooleanBothQuery, CustomConfig, ResultList, Video, VideosOverview } from '@shared/models'
6 6
7const expect = chai.expect
8
9function createOverviewRes (overview: VideosOverview) { 7function createOverviewRes (overview: VideosOverview) {
10 const videos = overview.categories[0].videos 8 const videos = overview.categories[0].videos
11 return { data: videos, total: videos.length } 9 return { data: videos, total: videos.length }