import {
addVideoCommentReply,
addVideoCommentThread,
- bulkRemoveCommentsOf,
+ BulkCommand,
cleanupTests,
createUser,
doubleFollow,
let user2AccessToken: string
let user3AccessToken: string
+ let bulkCommand: BulkCommand
+
before(async function () {
this.timeout(30000)
}
await doubleFollow(servers[0], servers[1])
+
+ bulkCommand = new BulkCommand(servers[0])
})
describe('Bulk remove comments', function () {
it('Should delete comments of an account on my videos', async function () {
this.timeout(60000)
- await bulkRemoveCommentsOf({
- url: servers[0].url,
+ await bulkCommand.removeCommentsOf({
token: user1AccessToken,
attributes: {
accountName: 'user2',
it('Should delete comments of an account on the instance', async function () {
this.timeout(60000)
- await bulkRemoveCommentsOf({
- url: servers[0].url,
- token: servers[0].accessToken,
+ await bulkCommand.removeCommentsOf({
attributes: {
accountName: 'user3@localhost:' + servers[1].port,
scope: 'instance'