thumbnail_path -> thumbnailPath

pull/10/head
Chocobozzz 2016-05-10 22:24:04 +02:00
parent 9e5f374090
commit 36d560246f
3 changed files with 9 additions and 9 deletions

View File

@ -182,7 +182,7 @@ function getFormatedVideo (video_obj) {
magnetUri: video_obj.magnetUri,
author: video_obj.author,
duration: video_obj.duration,
thumbnail_path: constants.THUMBNAILS_STATIC_PATH + '/' + video_obj.thumbnail
thumbnailPath: constants.THUMBNAILS_STATIC_PATH + '/' + video_obj.thumbnail
}
return formated_video

View File

@ -110,7 +110,7 @@ describe('Test multiple pods', function () {
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
expect(test).to.equal(true)
@ -165,7 +165,7 @@ describe('Test multiple pods', function () {
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
expect(test).to.equal(true)
@ -241,11 +241,11 @@ describe('Test multiple pods', function () {
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
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
expect(test).to.equal(true)

View File

@ -76,7 +76,7 @@ describe('Test a single pod', function () {
expect(video.author).to.equal('root')
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
expect(test).to.equal(true)
@ -108,7 +108,7 @@ describe('Test a single pod', function () {
expect(video.author).to.equal('root')
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
expect(test).to.equal(true)
@ -137,7 +137,7 @@ describe('Test a single pod', function () {
expect(video.author).to.equal('root')
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
expect(test).to.equal(true)
@ -220,7 +220,7 @@ describe('Test a single pod', function () {
if (err) throw err
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
expect(test).to.equal(true)