diff options
Diffstat (limited to 'shared/extra-utils/users/user-notifications.ts')
-rw-r--r-- | shared/extra-utils/users/user-notifications.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/extra-utils/users/user-notifications.ts b/shared/extra-utils/users/user-notifications.ts index a17a39de9..62f3418c5 100644 --- a/shared/extra-utils/users/user-notifications.ts +++ b/shared/extra-utils/users/user-notifications.ts | |||
@@ -443,11 +443,11 @@ async function checkNewVideoAbuseForModerators (base: CheckerBaseParams, videoUU | |||
443 | expect(notification).to.not.be.undefined | 443 | expect(notification).to.not.be.undefined |
444 | expect(notification.type).to.equal(notificationType) | 444 | expect(notification.type).to.equal(notificationType) |
445 | 445 | ||
446 | expect(notification.videoAbuse.id).to.be.a('number') | 446 | expect(notification.abuse.id).to.be.a('number') |
447 | checkVideo(notification.videoAbuse.video, videoName, videoUUID) | 447 | checkVideo(notification.abuse.video, videoName, videoUUID) |
448 | } else { | 448 | } else { |
449 | expect(notification).to.satisfy((n: UserNotification) => { | 449 | expect(notification).to.satisfy((n: UserNotification) => { |
450 | return n === undefined || n.videoAbuse === undefined || n.videoAbuse.video.uuid !== videoUUID | 450 | return n === undefined || n.abuse === undefined || n.abuse.video.uuid !== videoUUID |
451 | }) | 451 | }) |
452 | } | 452 | } |
453 | } | 453 | } |