diff options
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-video-constants')
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test-video-constants/main.js | 46 | ||||
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test-video-constants/package.json | 20 |
2 files changed, 0 insertions, 66 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test-video-constants/main.js b/server/tests/fixtures/peertube-plugin-test-video-constants/main.js deleted file mode 100644 index 06527bd35..000000000 --- a/server/tests/fixtures/peertube-plugin-test-video-constants/main.js +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | async function register ({ | ||
2 | videoCategoryManager, | ||
3 | videoLicenceManager, | ||
4 | videoLanguageManager, | ||
5 | videoPrivacyManager, | ||
6 | playlistPrivacyManager, | ||
7 | getRouter | ||
8 | }) { | ||
9 | videoLanguageManager.addConstant('al_bhed', 'Al Bhed') | ||
10 | videoLanguageManager.addLanguage('al_bhed2', 'Al Bhed 2') | ||
11 | videoLanguageManager.addConstant('al_bhed3', 'Al Bhed 3') | ||
12 | videoLanguageManager.deleteConstant('en') | ||
13 | videoLanguageManager.deleteLanguage('fr') | ||
14 | videoLanguageManager.deleteConstant('al_bhed3') | ||
15 | |||
16 | videoCategoryManager.addCategory(42, 'Best category') | ||
17 | videoCategoryManager.addConstant(43, 'High best category') | ||
18 | videoCategoryManager.deleteConstant(1) // Music | ||
19 | videoCategoryManager.deleteCategory(2) // Films | ||
20 | |||
21 | videoLicenceManager.addLicence(42, 'Best licence') | ||
22 | videoLicenceManager.addConstant(43, 'High best licence') | ||
23 | videoLicenceManager.deleteConstant(1) // Attribution | ||
24 | videoLicenceManager.deleteConstant(7) // Public domain | ||
25 | |||
26 | videoPrivacyManager.deleteConstant(2) | ||
27 | videoPrivacyManager.deletePrivacy(2) | ||
28 | playlistPrivacyManager.deleteConstant(3) | ||
29 | playlistPrivacyManager.deletePlaylistPrivacy(3) | ||
30 | |||
31 | { | ||
32 | const router = getRouter() | ||
33 | router.get('/reset-categories', (req, res) => { | ||
34 | videoCategoryManager.resetConstants() | ||
35 | |||
36 | res.sendStatus(204) | ||
37 | }) | ||
38 | } | ||
39 | } | ||
40 | |||
41 | async function unregister () {} | ||
42 | |||
43 | module.exports = { | ||
44 | register, | ||
45 | unregister | ||
46 | } | ||
diff --git a/server/tests/fixtures/peertube-plugin-test-video-constants/package.json b/server/tests/fixtures/peertube-plugin-test-video-constants/package.json deleted file mode 100644 index 0fcf39933..000000000 --- a/server/tests/fixtures/peertube-plugin-test-video-constants/package.json +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | { | ||
2 | "name": "peertube-plugin-test-video-constants", | ||
3 | "version": "0.0.1", | ||
4 | "description": "Plugin test video constants", | ||
5 | "engine": { | ||
6 | "peertube": ">=1.3.0" | ||
7 | }, | ||
8 | "keywords": [ | ||
9 | "peertube", | ||
10 | "plugin" | ||
11 | ], | ||
12 | "homepage": "https://github.com/Chocobozzz/PeerTube", | ||
13 | "author": "Chocobozzz", | ||
14 | "bugs": "https://github.com/Chocobozzz/PeerTube/issues", | ||
15 | "library": "./main.js", | ||
16 | "staticDirs": {}, | ||
17 | "css": [], | ||
18 | "clientScripts": [], | ||
19 | "translations": {} | ||
20 | } | ||