aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/friendsAdvanced.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/friendsAdvanced.js')
-rw-r--r--server/tests/api/friendsAdvanced.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/server/tests/api/friendsAdvanced.js b/server/tests/api/friendsAdvanced.js
index 9838d890f..6c4b7567f 100644
--- a/server/tests/api/friendsAdvanced.js
+++ b/server/tests/api/friendsAdvanced.js
@@ -1,14 +1,14 @@
1'use strict' 1'use strict'
2 2
3var async = require('async') 3const async = require('async')
4var chai = require('chai') 4const chai = require('chai')
5var expect = chai.expect 5const expect = chai.expect
6 6
7var utils = require('./utils') 7const utils = require('./utils')
8 8
9describe('Test advanced friends', function () { 9describe('Test advanced friends', function () {
10 var apps = [] 10 let apps = []
11 var urls = [] 11 let urls = []
12 12
13 function makeFriends (pod_number, callback) { 13 function makeFriends (pod_number, callback) {
14 return utils.makeFriends(urls[pod_number - 1], callback) 14 return utils.makeFriends(urls[pod_number - 1], callback)
@@ -23,9 +23,9 @@ describe('Test advanced friends', function () {
23 } 23 }
24 24
25 function uploadVideo (pod_number, callback) { 25 function uploadVideo (pod_number, callback) {
26 var name = 'my super video' 26 const name = 'my super video'
27 var description = 'my super description' 27 const description = 'my super description'
28 var fixture = 'video_short.webm' 28 const fixture = 'video_short.webm'
29 29
30 return utils.uploadVideo(urls[pod_number - 1], name, description, fixture, callback) 30 return utils.uploadVideo(urls[pod_number - 1], name, description, fixture, callback)
31 } 31 }
@@ -171,9 +171,9 @@ describe('Test advanced friends', function () {
171 if (err) throw err 171 if (err) throw err
172 172
173 // Pod 4 should not be our friend 173 // Pod 4 should not be our friend
174 var result = res.body 174 const result = res.body
175 expect(result.length).to.equal(3) 175 expect(result.length).to.equal(3)
176 for (var pod of result) { 176 for (const pod of result) {
177 expect(pod.url).not.equal(urls[3]) 177 expect(pod.url).not.equal(urls[3])
178 } 178 }
179 179