aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/singlePod.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-03-16 22:29:27 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-03-16 22:29:27 +0100
commitf0f5567b6918fc60c8cab15e13aec03a89a91dfb (patch)
tree99dfdb9fa8273c9cda1360fd3b6bfccc515bf8be /server/tests/api/singlePod.js
parent5101105ef91bfe478f97546b78b321882da2079c (diff)
downloadPeerTube-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/singlePod.js')
-rw-r--r--server/tests/api/singlePod.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/server/tests/api/singlePod.js b/server/tests/api/singlePod.js
index d572aacf6..14f893f13 100644
--- a/server/tests/api/singlePod.js
+++ b/server/tests/api/singlePod.js
@@ -1,20 +1,20 @@
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
6var fs = require('fs') 6const fs = require('fs')
7var pathUtils = require('path') 7const pathUtils = require('path')
8 8
9var webtorrent = require(pathUtils.join(__dirname, '../../lib/webtorrent')) 9const webtorrent = require(pathUtils.join(__dirname, '../../lib/webtorrent'))
10webtorrent.silent = true 10webtorrent.silent = true
11 11
12var utils = require('./utils') 12const utils = require('./utils')
13 13
14describe('Test a single pod', function () { 14describe('Test a single pod', function () {
15 var app = null 15 let app = null
16 var url = '' 16 let url = ''
17 var video_id = -1 17 let video_id = -1
18 18
19 before(function (done) { 19 before(function (done) {
20 this.timeout(20000) 20 this.timeout(20000)
@@ -62,7 +62,7 @@ describe('Test a single pod', function () {
62 expect(res.body).to.be.an('array') 62 expect(res.body).to.be.an('array')
63 expect(res.body.length).to.equal(1) 63 expect(res.body.length).to.equal(1)
64 64
65 var video = res.body[0] 65 const video = res.body[0]
66 expect(video.name).to.equal('my super name') 66 expect(video.name).to.equal('my super name')
67 expect(video.description).to.equal('my super description') 67 expect(video.description).to.equal('my super description')
68 expect(video.podUrl).to.equal('http://localhost:9001') 68 expect(video.podUrl).to.equal('http://localhost:9001')
@@ -87,7 +87,7 @@ describe('Test a single pod', function () {
87 expect(res.body).to.be.an('array') 87 expect(res.body).to.be.an('array')
88 expect(res.body.length).to.equal(1) 88 expect(res.body.length).to.equal(1)
89 89
90 var video = res.body[0] 90 const video = res.body[0]
91 expect(video.name).to.equal('my super name') 91 expect(video.name).to.equal('my super name')
92 expect(video.description).to.equal('my super description') 92 expect(video.description).to.equal('my super description')
93 expect(video.podUrl).to.equal('http://localhost:9001') 93 expect(video.podUrl).to.equal('http://localhost:9001')