From 876d1bcfd07b14d47ba377474e3bb680872d1f7a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 6 Dec 2015 17:09:07 +0100 Subject: Tests refractoring --- test/api/checkParams.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/api/checkParams.js') 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 @@ ;(function () { 'use strict' - var request = require('supertest') var chai = require('chai') var expect = chai.expect + var request = require('supertest') - var utils = require('../utils') + var utils = require('./utils') describe('Test parameters validator', function () { var app = null @@ -129,7 +129,7 @@ description: 'my super description' } var attach = { - 'input_video': __dirname + '/../fixtures/video_short.webm' + 'input_video': __dirname + '/fixtures/video_short.webm' } makePostRequest(path, data, attach, done) }) @@ -140,7 +140,7 @@ description: 'my super description' } var attach = { - 'input_video': __dirname + '/../fixtures/video_short.webm' + 'input_video': __dirname + '/fixtures/video_short.webm' } makePostRequest(path, data, attach, done) }) @@ -150,7 +150,7 @@ name: 'my super name' } var attach = { - 'input_video': __dirname + '/../fixtures/video_short.webm' + 'input_video': __dirname + '/fixtures/video_short.webm' } makePostRequest(path, data, attach, done) }) @@ -163,7 +163,7 @@ 'very very very very very very very very very very very very very very very long' } var attach = { - 'input_video': __dirname + '/../fixtures/video_short.webm' + 'input_video': __dirname + '/fixtures/video_short.webm' } makePostRequest(path, data, attach, done) }) @@ -194,12 +194,12 @@ description: 'my super description' } var attach = { - 'input_video': __dirname + '/../fixtures/video_short.webm' + 'input_video': __dirname + '/fixtures/video_short.webm' } makePostRequest(path, data, attach, function () { - attach.input_video = __dirname + '/../fixtures/video_short.mp4' + attach.input_video = __dirname + '/fixtures/video_short.mp4' makePostRequest(path, data, attach, function () { - attach.input_video = __dirname + '/../fixtures/video_short.ogv' + attach.input_video = __dirname + '/fixtures/video_short.ogv' makePostRequest(path, data, attach, done, true) }, true) }, true) -- cgit v1.2.3