diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-30 11:45:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-30 11:45:20 +0200 |
commit | 9c2e051c56e1ef6b9c9901f492fb506ee5d16def (patch) | |
tree | ba9d731b0e3d89e2a3004c047c59c0c4e4e7bac0 /server/tests/fixtures/peertube-plugin-test-broken | |
parent | 4c0a6954fb6df177f842de4bf3e3a97eb171a11b (diff) | |
download | PeerTube-9c2e051c56e1ef6b9c9901f492fb506ee5d16def.tar.gz PeerTube-9c2e051c56e1ef6b9c9901f492fb506ee5d16def.tar.zst PeerTube-9c2e051c56e1ef6b9c9901f492fb506ee5d16def.zip |
Handle broken plugin install
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-broken')
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test-broken/main.js | 12 | ||||
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test-broken/package.json | 20 |
2 files changed, 32 insertions, 0 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test-broken/main.js b/server/tests/fixtures/peertube-plugin-test-broken/main.js new file mode 100644 index 000000000..afdb6f7a0 --- /dev/null +++ b/server/tests/fixtures/peertube-plugin-test-broken/main.js | |||
@@ -0,0 +1,12 @@ | |||
1 | async function register (options) { | ||
2 | options.unknownFunction() | ||
3 | } | ||
4 | |||
5 | async function unregister () { | ||
6 | return | ||
7 | } | ||
8 | |||
9 | module.exports = { | ||
10 | register, | ||
11 | unregister | ||
12 | } | ||
diff --git a/server/tests/fixtures/peertube-plugin-test-broken/package.json b/server/tests/fixtures/peertube-plugin-test-broken/package.json new file mode 100644 index 000000000..fd03df216 --- /dev/null +++ b/server/tests/fixtures/peertube-plugin-test-broken/package.json | |||
@@ -0,0 +1,20 @@ | |||
1 | { | ||
2 | "name": "peertube-plugin-test-broken", | ||
3 | "version": "0.0.1", | ||
4 | "description": "Plugin test broken", | ||
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 | } | ||