From a65858746c1d2904bf117e8d91816e752d4b94c4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 24 May 2022 09:16:42 +0200 Subject: Fix my videos total counter --- server/tests/api/users/users.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server/tests/api/users/users.ts') diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts index a47713bf0..01b4c2eab 100644 --- a/server/tests/api/users/users.ts +++ b/server/tests/api/users/users.ts @@ -622,6 +622,13 @@ describe('Test users', function () { } }) + it('Should still have the same amount of videos in my account', async function () { + const { total, data } = await server.videos.listMyVideos({ token: userToken }) + + expect(total).to.equal(2) + expect(data).to.have.lengthOf(2) + }) + it('Should be able to update my display name', async function () { await server.users.updateMe({ token: userToken, displayName: 'new display name' }) -- cgit v1.2.3