aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/api/checkParams.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/api/checkParams.js')
-rw-r--r--test/api/checkParams.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/api/checkParams.js b/test/api/checkParams.js
index a06e32bbc..0fa83655f 100644
--- a/test/api/checkParams.js
+++ b/test/api/checkParams.js
@@ -1,11 +1,11 @@
1;(function () { 1;(function () {
2 'use strict' 2 'use strict'
3 3
4 var request = require('supertest')
5 var chai = require('chai') 4 var chai = require('chai')
6 var expect = chai.expect 5 var expect = chai.expect
6 var request = require('supertest')
7 7
8 var utils = require('../utils') 8 var utils = require('./utils')
9 9
10 describe('Test parameters validator', function () { 10 describe('Test parameters validator', function () {
11 var app = null 11 var app = null
@@ -129,7 +129,7 @@
129 description: 'my super description' 129 description: 'my super description'
130 } 130 }
131 var attach = { 131 var attach = {
132 'input_video': __dirname + '/../fixtures/video_short.webm' 132 'input_video': __dirname + '/fixtures/video_short.webm'
133 } 133 }
134 makePostRequest(path, data, attach, done) 134 makePostRequest(path, data, attach, done)
135 }) 135 })
@@ -140,7 +140,7 @@
140 description: 'my super description' 140 description: 'my super description'
141 } 141 }
142 var attach = { 142 var attach = {
143 'input_video': __dirname + '/../fixtures/video_short.webm' 143 'input_video': __dirname + '/fixtures/video_short.webm'
144 } 144 }
145 makePostRequest(path, data, attach, done) 145 makePostRequest(path, data, attach, done)
146 }) 146 })
@@ -150,7 +150,7 @@
150 name: 'my super name' 150 name: 'my super name'
151 } 151 }
152 var attach = { 152 var attach = {
153 'input_video': __dirname + '/../fixtures/video_short.webm' 153 'input_video': __dirname + '/fixtures/video_short.webm'
154 } 154 }
155 makePostRequest(path, data, attach, done) 155 makePostRequest(path, data, attach, done)
156 }) 156 })
@@ -163,7 +163,7 @@
163 'very very very very very very very very very very very very very very very long' 163 'very very very very very very very very very very very very very very very long'
164 } 164 }
165 var attach = { 165 var attach = {
166 'input_video': __dirname + '/../fixtures/video_short.webm' 166 'input_video': __dirname + '/fixtures/video_short.webm'
167 } 167 }
168 makePostRequest(path, data, attach, done) 168 makePostRequest(path, data, attach, done)
169 }) 169 })
@@ -194,12 +194,12 @@
194 description: 'my super description' 194 description: 'my super description'
195 } 195 }
196 var attach = { 196 var attach = {
197 'input_video': __dirname + '/../fixtures/video_short.webm' 197 'input_video': __dirname + '/fixtures/video_short.webm'
198 } 198 }
199 makePostRequest(path, data, attach, function () { 199 makePostRequest(path, data, attach, function () {
200 attach.input_video = __dirname + '/../fixtures/video_short.mp4' 200 attach.input_video = __dirname + '/fixtures/video_short.mp4'
201 makePostRequest(path, data, attach, function () { 201 makePostRequest(path, data, attach, function () {
202 attach.input_video = __dirname + '/../fixtures/video_short.ogv' 202 attach.input_video = __dirname + '/fixtures/video_short.ogv'
203 makePostRequest(path, data, attach, done, true) 203 makePostRequest(path, data, attach, done, true)
204 }, true) 204 }, true)
205 }, true) 205 }, true)