Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
64c30bf8
Verified
Commit
64c30bf8
authored
Dec 16, 2021
by
Chocobozzz
Browse files
Fix tests
parent
10788fd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/tests/fixtures/peertube-plugin-test-six/main.js
View file @
64c30bf8
...
...
@@ -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
(
'
,
'
))
}
...
...
server/tests/plugins/plugin-storage.ts
View file @
64c30bf8
...
...
@@ -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
'
)
})
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment