1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Server: add video abuse support

This commit is contained in:
Chocobozzz 2017-01-04 20:59:23 +01:00
parent a6fd2b30bf
commit 55fa55a9be
32 changed files with 921 additions and 175 deletions

View file

@ -28,7 +28,7 @@ describe('Test basic friends', function () {
podsUtils.getFriendsList(serverToTest.url, function (err, res) {
if (err) throw err
const result = res.body
const result = res.body.data
expect(result).to.be.an('array')
expect(result.length).to.equal(2)
@ -65,7 +65,7 @@ describe('Test basic friends', function () {
podsUtils.getFriendsList(server.url, function (err, res) {
if (err) throw err
const result = res.body
const result = res.body.data
expect(result).to.be.an('array')
expect(result.length).to.equal(0)
callback()
@ -90,7 +90,7 @@ describe('Test basic friends', function () {
podsUtils.getFriendsList(servers[1].url, function (err, res) {
if (err) throw err
const result = res.body
const result = res.body.data
expect(result).to.be.an('array')
expect(result.length).to.equal(1)
@ -107,7 +107,7 @@ describe('Test basic friends', function () {
podsUtils.getFriendsList(servers[2].url, function (err, res) {
if (err) throw err
const result = res.body
const result = res.body.data
expect(result).to.be.an('array')
expect(result.length).to.equal(1)
@ -154,7 +154,7 @@ describe('Test basic friends', function () {
podsUtils.getFriendsList(servers[1].url, function (err, res) {
if (err) throw err
const result = res.body
const result = res.body.data
expect(result).to.be.an('array')
expect(result.length).to.equal(0)
@ -167,7 +167,7 @@ describe('Test basic friends', function () {
podsUtils.getFriendsList(url, function (err, res) {
if (err) throw err
const result = res.body
const result = res.body.data
expect(result).to.be.an('array')
expect(result.length).to.equal(1)
expect(result[0].host).not.to.be.equal(servers[1].host)