Skip to content

Commit

Permalink
Merge pull request #186 from ahmed-deriv/revert-184-revert-170-ahmed/…
Browse files Browse the repository at this point in the history
…DAPI-819/chore--code-improvement

ahmed/DAPI-819/chore--code-improvement
  • Loading branch information
shafin-deriv authored Dec 10, 2024
2 parents f7b293a + ef4e67f commit ef05452
Show file tree
Hide file tree
Showing 91 changed files with 64 additions and 3,929 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 ef05452

Please sign in to comment.