From 51872b82a1187aaecc0c91c4eaf04f37fff5c506 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Dec 2021 10:15:27 +0100 Subject: Fix tests --- server/tests/fixtures/peertube-plugin-test-six/main.js | 2 +- server/tests/plugins/plugin-storage.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/tests/fixtures/peertube-plugin-test-six/main.js b/server/tests/fixtures/peertube-plugin-test-six/main.js index 4a9d56ea7..243b041e7 100644 --- a/server/tests/fixtures/peertube-plugin-test-six/main.js +++ b/server/tests/fixtures/peertube-plugin-test-six/main.js @@ -17,7 +17,7 @@ async function register ({ logger.info('superkey stored value is %s', result.value) const storedArrayValue = await storageManager.getData('storedArrayKey') - logger.info('storedArrayKey value type is %s', typeof storedArrayValue) + logger.info('storedArrayKey isArray is %s', Array.isArray(storedArrayValue) ? 'true' : 'false') logger.info('storedArrayKey stored value is %s', storedArrayValue.join(', ')) } diff --git a/server/tests/plugins/plugin-storage.ts b/server/tests/plugins/plugin-storage.ts index ac519045d..c0596819e 100644 --- a/server/tests/plugins/plugin-storage.ts +++ b/server/tests/plugins/plugin-storage.ts @@ -32,7 +32,7 @@ describe('Test plugin storage', function () { }) it('Should correctly retrieve an array as array from the storage.', async function () { - await server.servers.waitUntilLog('storedArrayKey value type is array') + await server.servers.waitUntilLog('storedArrayKey isArray is true') await server.servers.waitUntilLog('storedArrayKey stored value is toto, toto2') }) }) -- cgit v1.2.3