diff options
author | John Livingston <git@john-livingston.fr> | 2021-04-08 17:19:12 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-09 09:32:16 +0200 |
commit | 41137192096590b171563bc3161ede6f5c1d15db (patch) | |
tree | ce1eec2f632ef1f8286b1b55e12d89154930ec84 /server/tests/fixtures/peertube-plugin-test-unloading/main.js | |
parent | dc48fdbe68e9dd3a3a6028181e61d8595d98e654 (diff) | |
download | PeerTube-41137192096590b171563bc3161ede6f5c1d15db.tar.gz PeerTube-41137192096590b171563bc3161ede6f5c1d15db.tar.zst PeerTube-41137192096590b171563bc3161ede6f5c1d15db.zip |
Tests that show the bug.
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-unloading/main.js')
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test-unloading/main.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test-unloading/main.js b/server/tests/fixtures/peertube-plugin-test-unloading/main.js new file mode 100644 index 000000000..5c8457cef --- /dev/null +++ b/server/tests/fixtures/peertube-plugin-test-unloading/main.js | |||
@@ -0,0 +1,14 @@ | |||
1 | const lib = require('./lib') | ||
2 | |||
3 | async function register ({ getRouter }) { | ||
4 | const router = getRouter() | ||
5 | router.get('/get', (req, res) => res.json({ message: lib.value })) | ||
6 | } | ||
7 | |||
8 | async function unregister () { | ||
9 | } | ||
10 | |||
11 | module.exports = { | ||
12 | register, | ||
13 | unregister | ||
14 | } | ||