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.ts | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 server/tests/api/check-params/remotes.ts (limited to 'server/tests/api/check-params/remotes.ts') diff --git a/server/tests/api/check-params/remotes.ts b/server/tests/api/check-params/remotes.ts new file mode 100644 index 000000000..b36f1c08b --- /dev/null +++ b/server/tests/api/check-params/remotes.ts @@ -0,0 +1,52 @@ +/* tslint:disable:no-unused-expression */ + +import { + ServerInfo, + flushTests, + runServer, + setAccessTokensToServers, + killallServers +} from '../../utils' + +describe('Test remote videos API validators', function () { + let server: ServerInfo + + // --------------------------------------------------------------- + + before(async function () { + this.timeout(20000) + + await flushTests() + + server = await runServer(1) + + await setAccessTokensToServers([ server ]) + }) + + describe('When making a secure request', async function () { + it('Should check a secure request') + }) + + describe('When adding a video', async function () { + it('Should check when adding a video') + + it('Should not add an existing uuid') + }) + + describe('When removing a video', async function () { + it('Should check when removing a video') + }) + + describe('When reporting abuse on a video', async function () { + it('Should check when reporting a video abuse') + }) + + after(async function () { + killallServers([ server ]) + + // Keep the logs if the test failed + if (this['ok']) { + await flushTests() + } + }) +}) -- cgit v1.2.3