Skip to content

Commit

Permalink
ahmed/DAPI-819/chore--code-improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-deriv committed Nov 15, 2024
1 parent 07e3c78 commit e844f9d
Show file tree
Hide file tree
Showing 92 changed files with 66 additions and 3,932 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mockUseLogout.mockImplementation(() => {
};
});

describe('HeroHeader', () => {
describe.skip('HeroHeader', () => {
beforeEach(() => {
mockUseAuthContext.mockImplementation(() => {
return {
Expand All @@ -64,13 +64,13 @@ describe('HeroHeader', () => {
jest.clearAllMocks();
});

it.skip('Should render current account ', () => {
it('Should render current account ', () => {
const current_account_button = screen.getByRole('button', { name: /CR111111/i });

expect(current_account_button).toBeInTheDocument();
});

it.skip('Should call do logout on logout button click', async () => {
it('Should call do logout on logout button click', async () => {
const current_account_button = await screen.findByRole('button', { name: /CR111111/i });

await act(async () => {
Expand All @@ -86,7 +86,7 @@ describe('HeroHeader', () => {
expect(mockLogout).toHaveBeenCalledTimes(1);
});

it.skip('should be able to close the dropdown by clicking on the arrow', async () => {
it('should be able to close the dropdown by clicking on the arrow', async () => {
const current_account_button = await screen.findByRole('button', { name: /CR111111/i });

await act(async () => {
Expand All @@ -102,7 +102,7 @@ describe('HeroHeader', () => {
expect(close_dropdown_button).not.toBeVisible();
});

it.skip('Should render Accounts when no account is selected', () => {
it('Should render Accounts when no account is selected', () => {
cleanup();
mockUseAuthContext.mockImplementation(() => {
return {
Expand All @@ -127,7 +127,7 @@ describe('HeroHeader', () => {
expect(accounts_button).toBeInTheDocument();
});

it.skip('Should render the dropdown menu on current account button click', async () => {
it('Should render the dropdown menu on current account button click', async () => {
const current_account_button = screen.getByRole('button', { name: /USD/i });

await act(async () => {
Expand All @@ -139,7 +139,7 @@ describe('HeroHeader', () => {
expect(menu_items.length).toBe(1);
});

it.skip('Should update current account on menu item click', async () => {
it('Should update current account on menu item click', async () => {
mockUseAuthContext.mockImplementation(() => {
return {
loginAccounts: fake_accounts,
Expand Down

This file was deleted.

Loading

0 comments on commit e844f9d

Please sign in to comment.