thumbnail_path -> thumbnailPath
This commit is contained in:
parent
9e5f374090
commit
36d560246f
|
@ -182,7 +182,7 @@ function getFormatedVideo (video_obj) {
|
||||||
magnetUri: video_obj.magnetUri,
|
magnetUri: video_obj.magnetUri,
|
||||||
author: video_obj.author,
|
author: video_obj.author,
|
||||||
duration: video_obj.duration,
|
duration: video_obj.duration,
|
||||||
thumbnail_path: constants.THUMBNAILS_STATIC_PATH + '/' + video_obj.thumbnail
|
thumbnailPath: constants.THUMBNAILS_STATIC_PATH + '/' + video_obj.thumbnail
|
||||||
}
|
}
|
||||||
|
|
||||||
return formated_video
|
return formated_video
|
||||||
|
|
|
@ -110,7 +110,7 @@ describe('Test multiple pods', function () {
|
||||||
expect(video.magnetUri).to.equal.magnetUri
|
expect(video.magnetUri).to.equal.magnetUri
|
||||||
}
|
}
|
||||||
|
|
||||||
utils.testImage(server.url, 'video_short1.webm', video.thumbnail_path, function (err, test) {
|
utils.testImage(server.url, 'video_short1.webm', video.thumbnailPath, function (err, test) {
|
||||||
if (err) throw err
|
if (err) throw err
|
||||||
expect(test).to.equal(true)
|
expect(test).to.equal(true)
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ describe('Test multiple pods', function () {
|
||||||
expect(video.magnetUri).to.equal.magnetUri
|
expect(video.magnetUri).to.equal.magnetUri
|
||||||
}
|
}
|
||||||
|
|
||||||
utils.testImage(server.url, 'video_short2.webm', video.thumbnail_path, function (err, test) {
|
utils.testImage(server.url, 'video_short2.webm', video.thumbnailPath, function (err, test) {
|
||||||
if (err) throw err
|
if (err) throw err
|
||||||
expect(test).to.equal(true)
|
expect(test).to.equal(true)
|
||||||
|
|
||||||
|
@ -241,11 +241,11 @@ describe('Test multiple pods', function () {
|
||||||
expect(video2.magnetUri).to.equal.magnetUri
|
expect(video2.magnetUri).to.equal.magnetUri
|
||||||
}
|
}
|
||||||
|
|
||||||
utils.testImage(server.url, 'video_short3.webm', video1.thumbnail_path, function (err, test) {
|
utils.testImage(server.url, 'video_short3.webm', video1.thumbnailPath, function (err, test) {
|
||||||
if (err) throw err
|
if (err) throw err
|
||||||
expect(test).to.equal(true)
|
expect(test).to.equal(true)
|
||||||
|
|
||||||
utils.testImage(server.url, 'video_short.webm', video2.thumbnail_path, function (err, test) {
|
utils.testImage(server.url, 'video_short.webm', video2.thumbnailPath, function (err, test) {
|
||||||
if (err) throw err
|
if (err) throw err
|
||||||
expect(test).to.equal(true)
|
expect(test).to.equal(true)
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ describe('Test a single pod', function () {
|
||||||
expect(video.author).to.equal('root')
|
expect(video.author).to.equal('root')
|
||||||
expect(video.isLocal).to.be.true
|
expect(video.isLocal).to.be.true
|
||||||
|
|
||||||
utils.testImage(server.url, 'video_short.webm', video.thumbnail_path, function (err, test) {
|
utils.testImage(server.url, 'video_short.webm', video.thumbnailPath, function (err, test) {
|
||||||
if (err) throw err
|
if (err) throw err
|
||||||
expect(test).to.equal(true)
|
expect(test).to.equal(true)
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ describe('Test a single pod', function () {
|
||||||
expect(video.author).to.equal('root')
|
expect(video.author).to.equal('root')
|
||||||
expect(video.isLocal).to.be.true
|
expect(video.isLocal).to.be.true
|
||||||
|
|
||||||
utils.testImage(server.url, 'video_short.webm', video.thumbnail_path, function (err, test) {
|
utils.testImage(server.url, 'video_short.webm', video.thumbnailPath, function (err, test) {
|
||||||
if (err) throw err
|
if (err) throw err
|
||||||
expect(test).to.equal(true)
|
expect(test).to.equal(true)
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ describe('Test a single pod', function () {
|
||||||
expect(video.author).to.equal('root')
|
expect(video.author).to.equal('root')
|
||||||
expect(video.isLocal).to.be.true
|
expect(video.isLocal).to.be.true
|
||||||
|
|
||||||
utils.testImage(server.url, 'video_short.webm', video.thumbnail_path, function (err, test) {
|
utils.testImage(server.url, 'video_short.webm', video.thumbnailPath, function (err, test) {
|
||||||
if (err) throw err
|
if (err) throw err
|
||||||
expect(test).to.equal(true)
|
expect(test).to.equal(true)
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ describe('Test a single pod', function () {
|
||||||
if (err) throw err
|
if (err) throw err
|
||||||
const video_name = video.name.replace(' name', '')
|
const video_name = video.name.replace(' name', '')
|
||||||
|
|
||||||
utils.testImage(server.url, video_name, video.thumbnail_path, function (err, test) {
|
utils.testImage(server.url, video_name, video.thumbnailPath, function (err, test) {
|
||||||
if (err) throw err
|
if (err) throw err
|
||||||
|
|
||||||
expect(test).to.equal(true)
|
expect(test).to.equal(true)
|
||||||
|
|
Loading…
Reference in New Issue