})
it('Should fail without token', async function () {
- await servers[0].videoStats.getOverallStats({ videoId: videoId, token: null, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 })
+ await servers[0].videoStats.getOverallStats({ videoId, token: null, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 })
})
it('Should fail with another token', async function () {
await servers[0].videoStats.getOverallStats({
- videoId: videoId,
+ videoId,
token: userAccessToken,
expectedStatus: HttpStatusCode.FORBIDDEN_403
})
it('Should fail without token', async function () {
await servers[0].videoStats.getTimeserieStats({
- videoId: videoId,
+ videoId,
token: null,
metric: 'viewers',
expectedStatus: HttpStatusCode.UNAUTHORIZED_401
it('Should fail with another token', async function () {
await servers[0].videoStats.getTimeserieStats({
- videoId: videoId,
+ videoId,
token: userAccessToken,
metric: 'viewers',
expectedStatus: HttpStatusCode.FORBIDDEN_403
it('Should fail without token', async function () {
await servers[0].videoStats.getRetentionStats({
- videoId: videoId,
+ videoId,
token: null,
expectedStatus: HttpStatusCode.UNAUTHORIZED_401
})
it('Should fail with another token', async function () {
await servers[0].videoStats.getRetentionStats({
- videoId: videoId,
+ videoId,
token: userAccessToken,
expectedStatus: HttpStatusCode.FORBIDDEN_403
})