Add history on server side

Add ability to disable, clear and list user videos history
This commit is contained in:
Chocobozzz
2018-12-17 15:52:38 +01:00
parent 583cd0d212
commit 8b9a525a18
19 changed files with 385 additions and 29 deletions

View File

@@ -308,6 +308,14 @@ describe('Test users API validators', function () {
await makePutBodyRequest({ url: server.url, path: path + 'me', token: userAccessToken, fields })
})
it('Should fail with an invalid videosHistoryEnabled attribute', async function () {
const fields = {
videosHistoryEnabled: -1
}
await makePutBodyRequest({ url: server.url, path: path + 'me', token: userAccessToken, fields })
})
it('Should fail with an non authenticated user', async function () {
const fields = {
currentPassword: 'my super password',