aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/videos/videos-history.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/tests/api/videos/videos-history.ts b/server/tests/api/videos/videos-history.ts
index 661d603cb..b25cff879 100644
--- a/server/tests/api/videos/videos-history.ts
+++ b/server/tests/api/videos/videos-history.ts
@@ -152,6 +152,15 @@ describe('Test videos history', function () {
152 expect(res.body.data).to.have.lengthOf(0) 152 expect(res.body.data).to.have.lengthOf(0)
153 }) 153 })
154 154
155 it('Should be able to search through videos in my history', async function () {
156 const res = await listMyVideosHistory(server.url, server.accessToken, '2')
157
158 expect(res.body.total).to.equal(1)
159
160 const videos: Video[] = res.body.data
161 expect(videos[0].name).to.equal('video 2')
162 })
163
155 it('Should clear my history', async function () { 164 it('Should clear my history', async function () {
156 await removeMyVideosHistory(server.url, server.accessToken, video3WatchedDate.toISOString()) 165 await removeMyVideosHistory(server.url, server.accessToken, video3WatchedDate.toISOString())
157 }) 166 })