From 0e1dc3e7c69995c691e1dd82e3c2bc68748661ca Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 4 Sep 2017 21:21:47 +0200 Subject: Convert tests to typescript --- server/tests/api/check-params/remotes.js | 68 -------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 server/tests/api/check-params/remotes.js (limited to 'server/tests/api/check-params/remotes.js') diff --git a/server/tests/api/check-params/remotes.js b/server/tests/api/check-params/remotes.js deleted file mode 100644 index 7cb99c4ae..000000000 --- a/server/tests/api/check-params/remotes.js +++ /dev/null @@ -1,68 +0,0 @@ -/* eslint-disable no-unused-expressions */ - -'use strict' - -const series = require('async/series') - -const loginUtils = require('../../utils/login') -const serversUtils = require('../../utils/servers') - -describe('Test remote videos API validators', function () { - let server = null - - // --------------------------------------------------------------- - - before(function (done) { - this.timeout(20000) - - series([ - function (next) { - serversUtils.flushTests(next) - }, - function (next) { - serversUtils.runServer(1, function (server1) { - server = server1 - - next() - }) - }, - function (next) { - loginUtils.loginAndGetAccessToken(server, function (err, token) { - if (err) throw err - server.accessToken = token - - next() - }) - } - ], done) - }) - - describe('When making a secure request', function () { - it('Should check a secure request') - }) - - describe('When adding a video', function () { - it('Should check when adding a video') - - it('Should not add an existing uuid') - }) - - describe('When removing a video', function () { - it('Should check when removing a video') - }) - - describe('When reporting abuse on a video', function () { - it('Should check when reporting a video abuse') - }) - - after(function (done) { - process.kill(-server.app.pid) - - // Keep the logs if the test failed - if (this.ok) { - serversUtils.flushTests(done) - } else { - done() - } - }) -}) -- cgit v1.2.3