diff options
author | lutangar <johan.dufour@gmail.com> | 2021-12-15 09:35:17 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-12-16 10:17:39 +0100 |
commit | ced38c0ffe1e7d30f1f80fe704e571f39b0cc78b (patch) | |
tree | c6f435714e729c115154fc642ce0129917df198a /server/tests/fixtures/peertube-plugin-test-six | |
parent | 85302118227bad232afdebb84a5c245f862366bd (diff) | |
download | PeerTube-ced38c0ffe1e7d30f1f80fe704e571f39b0cc78b.tar.gz PeerTube-ced38c0ffe1e7d30f1f80fe704e571f39b0cc78b.tar.zst PeerTube-ced38c0ffe1e7d30f1f80fe704e571f39b0cc78b.zip |
fix plugin storage return value when storing a Json array
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-six')
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test-six/main.js | 5 |
1 files changed, 5 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 index 858bdb2df..4a9d56ea7 100644 --- a/server/tests/fixtures/peertube-plugin-test-six/main.js +++ b/server/tests/fixtures/peertube-plugin-test-six/main.js | |||
@@ -11,9 +11,14 @@ async function register ({ | |||
11 | { | 11 | { |
12 | await storageManager.storeData('superkey', { value: 'toto' }) | 12 | await storageManager.storeData('superkey', { value: 'toto' }) |
13 | await storageManager.storeData('anotherkey', { value: 'toto2' }) | 13 | await storageManager.storeData('anotherkey', { value: 'toto2' }) |
14 | await storageManager.storeData('storedArrayKey', ['toto', 'toto2']) | ||
14 | 15 | ||
15 | const result = await storageManager.getData('superkey') | 16 | const result = await storageManager.getData('superkey') |
16 | logger.info('superkey stored value is %s', result.value) | 17 | logger.info('superkey stored value is %s', result.value) |
18 | |||
19 | const storedArrayValue = await storageManager.getData('storedArrayKey') | ||
20 | logger.info('storedArrayKey value type is %s', typeof storedArrayValue) | ||
21 | logger.info('storedArrayKey stored value is %s', storedArrayValue.join(', ')) | ||
17 | } | 22 | } |
18 | 23 | ||
19 | { | 24 | { |