1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Fix plugin storeData

This commit is contained in:
Chocobozzz 2020-05-04 09:44:00 +02:00 committed by Chocobozzz
parent 15b4bcdf04
commit 97b65ce58a
5 changed files with 86 additions and 11 deletions

View file

@ -0,0 +1,30 @@
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
import 'mocha'
import { getPluginTestPath, installPlugin, setAccessTokensToServers } from '../../../shared/extra-utils'
import { cleanupTests, flushAndRunServer, ServerInfo, waitUntilLog } from '../../../shared/extra-utils/server/servers'
describe('Test plugin storage', function () {
let server: ServerInfo
before(async function () {
this.timeout(30000)
server = await flushAndRunServer(1)
await setAccessTokensToServers([ server ])
await installPlugin({
url: server.url,
accessToken: server.accessToken,
path: getPluginTestPath('-six')
})
})
it('Should correctly store a subkey', async function () {
await waitUntilLog(server, 'superkey stored value is toto')
})
after(async function () {
await cleanupTests([ server ])
})
})