diff options
Diffstat (limited to 'server/tests/api/singlePod.js')
-rw-r--r-- | server/tests/api/singlePod.js | 24 |
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 | ||
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 | var fs = require('fs') | 6 | const fs = require('fs') |
7 | var pathUtils = require('path') | 7 | const pathUtils = require('path') |
8 | 8 | ||
9 | var webtorrent = require(pathUtils.join(__dirname, '../../lib/webtorrent')) | 9 | const webtorrent = require(pathUtils.join(__dirname, '../../lib/webtorrent')) |
10 | webtorrent.silent = true | 10 | webtorrent.silent = true |
11 | 11 | ||
12 | var utils = require('./utils') | 12 | const utils = require('./utils') |
13 | 13 | ||
14 | describe('Test a single pod', function () { | 14 | describe('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') |