diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-24 09:16:42 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-24 09:16:42 +0200 |
commit | a65858746c1d2904bf117e8d91816e752d4b94c4 (patch) | |
tree | 1734d54d535d94af627383a6186b357f031beb45 /server/tests | |
parent | 21393652621efba8a95715c6f340515d58599ec6 (diff) | |
download | PeerTube-a65858746c1d2904bf117e8d91816e752d4b94c4.tar.gz PeerTube-a65858746c1d2904bf117e8d91816e752d4b94c4.tar.zst PeerTube-a65858746c1d2904bf117e8d91816e752d4b94c4.zip |
Fix my videos total counter
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/users/users.ts | 7 |
1 files changed, 7 insertions, 0 deletions
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 () { | |||
622 | } | 622 | } |
623 | }) | 623 | }) |
624 | 624 | ||
625 | it('Should still have the same amount of videos in my account', async function () { | ||
626 | const { total, data } = await server.videos.listMyVideos({ token: userToken }) | ||
627 | |||
628 | expect(total).to.equal(2) | ||
629 | expect(data).to.have.lengthOf(2) | ||
630 | }) | ||
631 | |||
625 | it('Should be able to update my display name', async function () { | 632 | it('Should be able to update my display name', async function () { |
626 | await server.users.updateMe({ token: userToken, displayName: 'new display name' }) | 633 | await server.users.updateMe({ token: userToken, displayName: 'new display name' }) |
627 | 634 | ||