PeerTubeServer,
SearchCommand,
setAccessTokensToServers
-} from '@shared/extra-utils'
+} from '@shared/server-commands'
import { VideoChannel } from '@shared/models'
const expect = chai.expect
expect(body.data[0].displayName).to.equal('Squall channel')
}
+ {
+ const body = await command.advancedChannelSearch({ search: { handles: [ 'squall_channel@' + server.host ] } })
+ expect(body.total).to.equal(1)
+ expect(body.data).to.have.lengthOf(1)
+ expect(body.data[0].displayName).to.equal('Squall channel')
+ }
+
{
const body = await command.advancedChannelSearch({ search: { handles: [ 'chocobozzz_channel' ] } })
expect(body.total).to.equal(0)