diff options
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/videos/video-channels.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/videos/video-channels.ts b/server/tests/api/videos/video-channels.ts index bde45584d..876a6ab66 100644 --- a/server/tests/api/videos/video-channels.ts +++ b/server/tests/api/videos/video-channels.ts | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | import * as chai from 'chai' | 3 | import * as chai from 'chai' |
4 | import 'mocha' | 4 | import 'mocha' |
5 | import { User, Video, VideoChannel, viewsPerTime, VideoDetails } from '../../../../shared/index' | 5 | import { User, Video, VideoChannel, ViewsPerDate, VideoDetails } from '../../../../shared/index' |
6 | import { | 6 | import { |
7 | cleanupTests, | 7 | cleanupTests, |
8 | createUser, | 8 | createUser, |
@@ -376,7 +376,7 @@ describe('Test video channels', function () { | |||
376 | res.body.data.forEach((channel: VideoChannel) => { | 376 | res.body.data.forEach((channel: VideoChannel) => { |
377 | expect(channel).to.haveOwnProperty('viewsPerDay') | 377 | expect(channel).to.haveOwnProperty('viewsPerDay') |
378 | expect(channel.viewsPerDay).to.have.length(30 + 1) // daysPrior + today | 378 | expect(channel.viewsPerDay).to.have.length(30 + 1) // daysPrior + today |
379 | channel.viewsPerDay.forEach((v: viewsPerTime) => { | 379 | channel.viewsPerDay.forEach((v: ViewsPerDate) => { |
380 | expect(v.date).to.be.an('string') | 380 | expect(v.date).to.be.an('string') |
381 | expect(v.views).to.equal(0) | 381 | expect(v.views).to.equal(0) |
382 | }) | 382 | }) |