import {
cleanupTests,
createMultipleServers,
- SearchCommand,
PeerTubeServer,
+ SearchCommand,
setAccessTokensToServers,
wait,
waitJobs
const { total, data } = await servers[0].videos.listByChannel({
token: null,
- videoChannelName: 'channel1_server2@localhost:' + servers[1].port
+ handle: 'channel1_server2@localhost:' + servers[1].port
})
expect(total).to.equal(0)
expect(data).to.have.lengthOf(0)
it('Should list video channel videos of server 2 with token', async function () {
const { total, data } = await servers[0].videos.listByChannel({
- videoChannelName: 'channel1_server2@localhost:' + servers[1].port
+ handle: 'channel1_server2@localhost:' + servers[1].port
})
expect(total).to.equal(1)
await waitJobs(servers)
- const videoChannelName = 'channel1_server2@localhost:' + servers[1].port
- const { total, data } = await servers[0].videos.listByChannel({ videoChannelName, sort: '-createdAt' })
+ const handle = 'channel1_server2@localhost:' + servers[1].port
+ const { total, data } = await servers[0].videos.listByChannel({ handle, sort: '-createdAt' })
expect(total).to.equal(2)
expect(data[0].name).to.equal('video 2 server 2')