From b4e802d4bfecc457df62a9de87e7969289556768 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 20 Feb 2023 17:37:19 -0300 Subject: [PATCH] lint --- e2e/data.ts | 1 + e2e/globalSetup.ts | 1 + e2e/helpers/data_setup.ts | 3 +++ 3 files changed, 5 insertions(+) diff --git a/e2e/data.ts b/e2e/data.ts index ce00e11b3..fd78d02d5 100644 --- a/e2e/data.ts +++ b/e2e/data.ts @@ -15,6 +15,7 @@ export type TUserRegularChannels = keyof typeof data.userRegularChannels; export type TDataGroups = keyof typeof data.groups; export type TDataTeams = keyof typeof data.teams; +// @ts-ignore const value = globalThis.random; const data = { server: 'https://mobile.rocket.chat', diff --git a/e2e/globalSetup.ts b/e2e/globalSetup.ts index 86010129f..467e256eb 100644 --- a/e2e/globalSetup.ts +++ b/e2e/globalSetup.ts @@ -8,6 +8,7 @@ import random from './helpers/random'; module.exports = async () => { await require('detox/runners/jest/index').globalSetup(); + // @ts-ignore globalThis.random = random(20); await setup(); }; diff --git a/e2e/helpers/data_setup.ts b/e2e/helpers/data_setup.ts index 4fe1af25a..8beb60fff 100644 --- a/e2e/helpers/data_setup.ts +++ b/e2e/helpers/data_setup.ts @@ -106,6 +106,7 @@ const changeChannelJoinCode = async (roomId: string, joinCode: string) => { await rocketchat.post('method.call/saveRoomSettings', { message: JSON.stringify({ msg: 'method', + // @ts-ignore id: globalThis.random, method: 'saveRoomSettings', params: [roomId, { joinCode }] @@ -130,6 +131,7 @@ const sendMessage = async (user: { username: string; password: string }, channel }; const setup = async () => { + // @ts-ignore const data = new Data(globalThis.random); await login(data.adminUser, data.adminPassword); @@ -186,6 +188,7 @@ const get = (endpoint: string) => { }; const post = async (endpoint: string, body: any) => { + // @ts-ignore const data = new Data(globalThis.random); await login(data.users.regular.username, data.users.regular.password); console.log(`POST /${endpoint} ${JSON.stringify(body)}`);