aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/fixtures/peertube-plugin-test-three
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-15 15:18:11 +0200
committerChocobozzz <me@florianbigard.com>2021-06-15 15:18:11 +0200
commit799ece6aae8ef55b50b6193de3c4d46e7bb258f5 (patch)
tree2238fe2a60b7dd7bbc628c3d58f7941461439e7b /server/tests/fixtures/peertube-plugin-test-three
parent4c3e4c3d93a08edd5d2ed8f102e54ed2d9307ace (diff)
downloadPeerTube-799ece6aae8ef55b50b6193de3c4d46e7bb258f5.tar.gz
PeerTube-799ece6aae8ef55b50b6193de3c4d46e7bb258f5.tar.zst
PeerTube-799ece6aae8ef55b50b6193de3c4d46e7bb258f5.zip
Add ability to delete previously added constants
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-three')
-rw-r--r--server/tests/fixtures/peertube-plugin-test-three/main.js44
-rw-r--r--server/tests/fixtures/peertube-plugin-test-three/package.json20
2 files changed, 0 insertions, 64 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 @@
1async 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
31async function unregister () {
32 return
33}
34
35module.exports = {
36 register,
37 unregister
38}
39
40// ############################################################################
41
42function addToCount (obj) {
43 return Object.assign({}, obj, { count: obj.count + 1 })
44}
diff --git a/server/tests/fixtures/peertube-plugin-test-three/package.json b/server/tests/fixtures/peertube-plugin-test-three/package.json
deleted file mode 100644
index 41d4c93fe..000000000
--- a/server/tests/fixtures/peertube-plugin-test-three/package.json
+++ /dev/null
@@ -1,20 +0,0 @@
1{
2 "name": "peertube-plugin-test-three",
3 "version": "0.0.1",
4 "description": "Plugin test 3",
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}