refactor: convert channel_moderation files to ts (#28482)
* refactor: convert channel_moderation files to ts - convert js files to ts - update data types accordingly - fix lint issues Fixes: #21332 * fix: update argument type for visitChannel - update type - fix types issues * refactor: change return type for getAdminAccount() - change return type to getAdminAccount as UserProfile
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f0918e1c01
Коммит
89f04af631
@@ -13,7 +13,7 @@ import {getRandomId} from '../utils';
|
||||
function externalActivateUser(userId: string, active = true) {
|
||||
const admin = getAdminAccount();
|
||||
|
||||
cy.externalRequest({user: admin, method: 'PUT', path: `users/${userId}/active`, data: {active}});
|
||||
return cy.externalRequest({user: admin, method: 'PUT', path: `users/${userId}/active`, data: {active}});
|
||||
}
|
||||
Cypress.Commands.add('externalActivateUser', externalActivateUser);
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user