mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-23 09:51:33 -05:00
* 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
25 lines
613 B
TypeScript
25 lines
613 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {UserProfile} from '@mattermost/types/users';
|
|
|
|
export interface User {
|
|
username: string;
|
|
password: string;
|
|
email: string;
|
|
}
|
|
|
|
export function getAdminAccount() {
|
|
return {
|
|
username: Cypress.env('adminUsername'),
|
|
password: Cypress.env('adminPassword'),
|
|
email: Cypress.env('adminEmail'),
|
|
} as UserProfile;
|
|
}
|
|
|
|
export function getDBConfig() {
|
|
return {
|
|
client: Cypress.env('dbClient'),
|
|
connection: Cypress.env('dbConnection'),
|
|
};
|
|
}
|