aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/views/video-views-timeserie-stats.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/views/video-views-timeserie-stats.ts')
-rw-r--r--server/tests/api/views/video-views-timeserie-stats.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/tests/api/views/video-views-timeserie-stats.ts b/server/tests/api/views/video-views-timeserie-stats.ts
index d6c89a63e..e8cb34ad6 100644
--- a/server/tests/api/views/video-views-timeserie-stats.ts
+++ b/server/tests/api/views/video-views-timeserie-stats.ts
@@ -1,13 +1,11 @@
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 { FfmpegCommand } from 'fluent-ffmpeg' 4import { FfmpegCommand } from 'fluent-ffmpeg'
5import { prepareViewsServers, prepareViewsVideos, processViewersStats } from '@server/tests/shared' 5import { prepareViewsServers, prepareViewsVideos, processViewersStats } from '@server/tests/shared'
6import { VideoStatsTimeserie, VideoStatsTimeserieMetric } from '@shared/models' 6import { VideoStatsTimeserie, VideoStatsTimeserieMetric } from '@shared/models'
7import { cleanupTests, PeerTubeServer, stopFfmpeg } from '@shared/server-commands' 7import { cleanupTests, PeerTubeServer, stopFfmpeg } from '@shared/server-commands'
8 8
9const expect = chai.expect
10
11function buildOneMonthAgo () { 9function buildOneMonthAgo () {
12 const monthAgo = new Date() 10 const monthAgo = new Date()
13 monthAgo.setHours(0, 0, 0, 0) 11 monthAgo.setHours(0, 0, 0, 0)