diff options
Diffstat (limited to 'server/tests/utils')
-rw-r--r-- | server/tests/utils/videos/videos.ts | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts index 592248144..674a92df9 100644 --- a/server/tests/utils/videos/videos.ts +++ b/server/tests/utils/videos/videos.ts | |||
@@ -438,18 +438,19 @@ async function completeVideoCheck ( | |||
438 | name: string | 438 | name: string |
439 | host: string | 439 | host: string |
440 | } | 440 | } |
441 | isLocal: boolean, | 441 | isLocal: boolean |
442 | tags: string[], | 442 | tags: string[] |
443 | privacy: number, | 443 | privacy: number |
444 | likes?: number, | 444 | likes?: number |
445 | dislikes?: number, | 445 | dislikes?: number |
446 | duration: number, | 446 | duration: number |
447 | channel: { | 447 | channel: { |
448 | name: string, | 448 | displayName: string |
449 | name: string | ||
449 | description | 450 | description |
450 | isLocal: boolean | 451 | isLocal: boolean |
451 | } | 452 | } |
452 | fixture: string, | 453 | fixture: string |
453 | files: { | 454 | files: { |
454 | resolution: number | 455 | resolution: number |
455 | size: number | 456 | size: number |
@@ -476,8 +477,8 @@ async function completeVideoCheck ( | |||
476 | expect(video.account.uuid).to.be.a('string') | 477 | expect(video.account.uuid).to.be.a('string') |
477 | expect(video.account.host).to.equal(attributes.account.host) | 478 | expect(video.account.host).to.equal(attributes.account.host) |
478 | expect(video.account.name).to.equal(attributes.account.name) | 479 | expect(video.account.name).to.equal(attributes.account.name) |
479 | expect(video.channel.displayName).to.equal(attributes.channel.name) | 480 | expect(video.channel.displayName).to.equal(attributes.channel.displayName) |
480 | expect(video.channel.name).to.have.lengthOf(36) | 481 | expect(video.channel.name).to.equal(attributes.channel.name) |
481 | expect(video.likes).to.equal(attributes.likes) | 482 | expect(video.likes).to.equal(attributes.likes) |
482 | expect(video.dislikes).to.equal(attributes.dislikes) | 483 | expect(video.dislikes).to.equal(attributes.dislikes) |
483 | expect(video.isLocal).to.equal(attributes.isLocal) | 484 | expect(video.isLocal).to.equal(attributes.isLocal) |
@@ -497,8 +498,8 @@ async function completeVideoCheck ( | |||
497 | expect(videoDetails.tags).to.deep.equal(attributes.tags) | 498 | expect(videoDetails.tags).to.deep.equal(attributes.tags) |
498 | expect(videoDetails.account.name).to.equal(attributes.account.name) | 499 | expect(videoDetails.account.name).to.equal(attributes.account.name) |
499 | expect(videoDetails.account.host).to.equal(attributes.account.host) | 500 | expect(videoDetails.account.host).to.equal(attributes.account.host) |
500 | expect(videoDetails.channel.displayName).to.equal(attributes.channel.name) | 501 | expect(video.channel.displayName).to.equal(attributes.channel.displayName) |
501 | expect(videoDetails.channel.name).to.have.lengthOf(36) | 502 | expect(video.channel.name).to.equal(attributes.channel.name) |
502 | expect(videoDetails.channel.host).to.equal(attributes.account.host) | 503 | expect(videoDetails.channel.host).to.equal(attributes.account.host) |
503 | expect(videoDetails.channel.isLocal).to.equal(attributes.channel.isLocal) | 504 | expect(videoDetails.channel.isLocal).to.equal(attributes.channel.isLocal) |
504 | expect(dateIsValid(videoDetails.channel.createdAt.toString())).to.be.true | 505 | expect(dateIsValid(videoDetails.channel.createdAt.toString())).to.be.true |