aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/fixtures/peertube-plugin-test-six
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-six')
-rw-r--r--server/tests/fixtures/peertube-plugin-test-six/main.js25
-rw-r--r--server/tests/fixtures/peertube-plugin-test-six/package.json20
2 files changed, 45 insertions, 0 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test-six/main.js b/server/tests/fixtures/peertube-plugin-test-six/main.js
new file mode 100644
index 000000000..bb9aaffa7
--- /dev/null
+++ b/server/tests/fixtures/peertube-plugin-test-six/main.js
@@ -0,0 +1,25 @@
1async function register ({
2 storageManager,
3 peertubeHelpers
4}) {
5 const { logger } = peertubeHelpers
6
7 {
8 await storageManager.storeData('superkey', { value: 'toto' })
9 await storageManager.storeData('anotherkey', { value: 'toto2' })
10
11 const result = await storageManager.getData('superkey')
12 logger.info('superkey stored value is %s', result.value)
13 }
14}
15
16async function unregister () {
17 return
18}
19
20module.exports = {
21 register,
22 unregister
23}
24
25// ###########################################################################
diff --git a/server/tests/fixtures/peertube-plugin-test-six/package.json b/server/tests/fixtures/peertube-plugin-test-six/package.json
new file mode 100644
index 000000000..8c97826b0
--- /dev/null
+++ b/server/tests/fixtures/peertube-plugin-test-six/package.json
@@ -0,0 +1,20 @@
1{
2 "name": "peertube-plugin-test-six",
3 "version": "0.0.1",
4 "description": "Plugin test 6",
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}