From e8a90b23486d7cf7686baba6671f2b23132cf140 Mon Sep 17 00:00:00 2001
From: George Usynin <103181646+heorhi-deriv@users.noreply.github.com>
Date: Tue, 12 Nov 2024 15:18:54 +0300
Subject: [PATCH] Update AvailableMT5AcountsList.spec.tsx
---
.../__test__/AvailableMT5AcountsList.spec.tsx | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/packages/wallets/src/features/cfd/flows/MT5/AvailableMT5AccountsList/__test__/AvailableMT5AcountsList.spec.tsx b/packages/wallets/src/features/cfd/flows/MT5/AvailableMT5AccountsList/__test__/AvailableMT5AcountsList.spec.tsx
index a7f1650a0611..82f9350cd3b2 100644
--- a/packages/wallets/src/features/cfd/flows/MT5/AvailableMT5AccountsList/__test__/AvailableMT5AcountsList.spec.tsx
+++ b/packages/wallets/src/features/cfd/flows/MT5/AvailableMT5AccountsList/__test__/AvailableMT5AcountsList.spec.tsx
@@ -127,7 +127,7 @@ describe('AvailableMT5AccountsList', () => {
expect(mockShow).toHaveBeenCalledWith();
});
- it('shows MT5PasswordModal for non-regulated real accounts if client is verified', async () => {
+ it('shows MT5PasswordModal for non-regulated real accounts if client is verified', () => {
(useActiveWalletAccount as jest.Mock).mockReturnValue({
data: undefined,
});
@@ -135,13 +135,13 @@ describe('AvailableMT5AccountsList', () => {
render();
const button = screen.getByTestId('dt_wallets_trading_account_card');
- await userEvent.click(button);
+ userEvent.click(button);
// @ts-expect-error - since this is a mock, we only need partial properties of the account
expect(mockShow).toHaveBeenCalledWith();
});
- it('shows ClientVerificationModal for regulated real accounts if client is unverified', async () => {
+ it('shows ClientVerificationModal for regulated real accounts if client is unverified', () => {
(useActiveWalletAccount as jest.Mock).mockReturnValue({
data: {
is_virtual: false,
@@ -151,13 +151,13 @@ describe('AvailableMT5AccountsList', () => {
render();
const button = screen.getByTestId('dt_wallets_trading_account_card');
- await userEvent.click(button);
+ userEvent.click(button);
// @ts-expect-error - since this is a mock, we only need partial properties of the account
expect(mockShow).toHaveBeenCalledWith();
});
- it('shows MT5PasswordModal for demo accounts for verified clients', async () => {
+ it('shows MT5PasswordModal for demo accounts for verified clients', () => {
(useActiveWalletAccount as jest.Mock).mockReturnValue({
data: {
is_virtual: true,
@@ -167,7 +167,7 @@ describe('AvailableMT5AccountsList', () => {
render();
const button = screen.getByTestId('dt_wallets_trading_account_card');
- await userEvent.click(button);
+ userEvent.click(button);
// @ts-expect-error - since this is a mock, we only need partial properties of the account
expect(mockShow).toHaveBeenCalledWith();