+ it('Should delete a specific history element', async function () {
+ {
+ await server.views.view({ id: video1UUID, token: server.accessToken, currentTime: 4 })
+ await server.views.view({ id: video2UUID, token: server.accessToken, currentTime: 8 })
+ }
+
+ {
+ const body = await server.history.list()
+ expect(body.total).to.equal(2)
+ }
+
+ {
+ await server.history.removeElement({ videoId: video1Id })
+
+ const body = await server.history.list()
+ expect(body.total).to.equal(1)
+ expect(body.data[0].uuid).to.equal(video2UUID)
+ }
+ })
+