diff options
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-three/main.js')
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test-three/main.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test-three/main.js b/server/tests/fixtures/peertube-plugin-test-three/main.js deleted file mode 100644 index f2b89bcf0..000000000 --- a/server/tests/fixtures/peertube-plugin-test-three/main.js +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | async function register ({ | ||
2 | registerHook, | ||
3 | registerSetting, | ||
4 | settingsManager, | ||
5 | storageManager, | ||
6 | videoCategoryManager, | ||
7 | videoLicenceManager, | ||
8 | videoLanguageManager, | ||
9 | videoPrivacyManager, | ||
10 | playlistPrivacyManager | ||
11 | }) { | ||
12 | videoLanguageManager.addLanguage('al_bhed', 'Al Bhed') | ||
13 | videoLanguageManager.addLanguage('al_bhed2', 'Al Bhed 2') | ||
14 | videoLanguageManager.deleteLanguage('en') | ||
15 | videoLanguageManager.deleteLanguage('fr') | ||
16 | |||
17 | videoCategoryManager.addCategory(42, 'Best category') | ||
18 | videoCategoryManager.addCategory(43, 'High best category') | ||
19 | videoCategoryManager.deleteCategory(1) // Music | ||
20 | videoCategoryManager.deleteCategory(2) // Films | ||
21 | |||
22 | videoLicenceManager.addLicence(42, 'Best licence') | ||
23 | videoLicenceManager.addLicence(43, 'High best licence') | ||
24 | videoLicenceManager.deleteLicence(1) // Attribution | ||
25 | videoLicenceManager.deleteLicence(7) // Public domain | ||
26 | |||
27 | videoPrivacyManager.deletePrivacy(2) | ||
28 | playlistPrivacyManager.deletePlaylistPrivacy(3) | ||
29 | } | ||
30 | |||
31 | async function unregister () { | ||
32 | return | ||
33 | } | ||
34 | |||
35 | module.exports = { | ||
36 | register, | ||
37 | unregister | ||
38 | } | ||
39 | |||
40 | // ############################################################################ | ||
41 | |||
42 | function addToCount (obj) { | ||
43 | return Object.assign({}, obj, { count: obj.count + 1 }) | ||
44 | } | ||