diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-09-04 21:21:47 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-09-04 21:30:18 +0200 |
commit | 0e1dc3e7c69995c691e1dd82e3c2bc68748661ca (patch) | |
tree | f2a4b5cffc72e33c902b67083bbaa35b6f22f0ca /server/tests/api/check-params/remotes.ts | |
parent | b0f9f39ed70299a208d1b388c72de8b7f3510cb7 (diff) | |
download | PeerTube-0e1dc3e7c69995c691e1dd82e3c2bc68748661ca.tar.gz PeerTube-0e1dc3e7c69995c691e1dd82e3c2bc68748661ca.tar.zst PeerTube-0e1dc3e7c69995c691e1dd82e3c2bc68748661ca.zip |
Convert tests to typescript
Diffstat (limited to 'server/tests/api/check-params/remotes.ts')
-rw-r--r-- | server/tests/api/check-params/remotes.ts | 52 |
1 files changed, 52 insertions, 0 deletions
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 @@ | |||
1 | /* tslint:disable:no-unused-expression */ | ||
2 | |||
3 | import { | ||
4 | ServerInfo, | ||
5 | flushTests, | ||
6 | runServer, | ||
7 | setAccessTokensToServers, | ||
8 | killallServers | ||
9 | } from '../../utils' | ||
10 | |||
11 | describe('Test remote videos API validators', function () { | ||
12 | let server: ServerInfo | ||
13 | |||
14 | // --------------------------------------------------------------- | ||
15 | |||
16 | before(async function () { | ||
17 | this.timeout(20000) | ||
18 | |||
19 | await flushTests() | ||
20 | |||
21 | server = await runServer(1) | ||
22 | |||
23 | await setAccessTokensToServers([ server ]) | ||
24 | }) | ||
25 | |||
26 | describe('When making a secure request', async function () { | ||
27 | it('Should check a secure request') | ||
28 | }) | ||
29 | |||
30 | describe('When adding a video', async function () { | ||
31 | it('Should check when adding a video') | ||
32 | |||
33 | it('Should not add an existing uuid') | ||
34 | }) | ||
35 | |||
36 | describe('When removing a video', async function () { | ||
37 | it('Should check when removing a video') | ||
38 | }) | ||
39 | |||
40 | describe('When reporting abuse on a video', async function () { | ||
41 | it('Should check when reporting a video abuse') | ||
42 | }) | ||
43 | |||
44 | after(async function () { | ||
45 | killallServers([ server ]) | ||
46 | |||
47 | // Keep the logs if the test failed | ||
48 | if (this['ok']) { | ||
49 | await flushTests() | ||
50 | } | ||
51 | }) | ||
52 | }) | ||