diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-03-16 22:29:27 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-03-16 22:29:27 +0100 |
commit | f0f5567b6918fc60c8cab15e13aec03a89a91dfb (patch) | |
tree | 99dfdb9fa8273c9cda1360fd3b6bfccc515bf8be /server/tests/api/friendsAdvanced.js | |
parent | 5101105ef91bfe478f97546b78b321882da2079c (diff) | |
download | PeerTube-f0f5567b6918fc60c8cab15e13aec03a89a91dfb.tar.gz PeerTube-f0f5567b6918fc60c8cab15e13aec03a89a91dfb.tar.zst PeerTube-f0f5567b6918fc60c8cab15e13aec03a89a91dfb.zip |
Use const/let now we use node 4.2
Diffstat (limited to 'server/tests/api/friendsAdvanced.js')
-rw-r--r-- | server/tests/api/friendsAdvanced.js | 22 |
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 | ||
3 | var async = require('async') | 3 | const async = require('async') |
4 | var chai = require('chai') | 4 | const chai = require('chai') |
5 | var expect = chai.expect | 5 | const expect = chai.expect |
6 | 6 | ||
7 | var utils = require('./utils') | 7 | const utils = require('./utils') |
8 | 8 | ||
9 | describe('Test advanced friends', function () { | 9 | describe('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 | ||