Skip to content

Commit c4e61d7

Browse files
authored
Merge pull request #170 from ahmed-deriv/ahmed/DAPI-819/chore--code-improvement
ahmed/DAPI-819/chore--code-improvement
2 parents fd00b8b + cae3ce3 commit c4e61d7

File tree

91 files changed

+64
-3929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+64
-3929
lines changed

src/components/AccountSwitcher/__tests__/AccountSwitcher.test.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ mockUseLogout.mockImplementation(() => {
3737
};
3838
});
3939

40-
describe('HeroHeader', () => {
40+
describe.skip('HeroHeader', () => {
4141
beforeEach(() => {
4242
mockUseAuthContext.mockImplementation(() => {
4343
return {
@@ -64,13 +64,13 @@ describe('HeroHeader', () => {
6464
jest.clearAllMocks();
6565
});
6666

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

7070
expect(current_account_button).toBeInTheDocument();
7171
});
7272

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

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

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

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

105-
it.skip('Should render Accounts when no account is selected', () => {
105+
it('Should render Accounts when no account is selected', () => {
106106
cleanup();
107107
mockUseAuthContext.mockImplementation(() => {
108108
return {
@@ -127,7 +127,7 @@ describe('HeroHeader', () => {
127127
expect(accounts_button).toBeInTheDocument();
128128
});
129129

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

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

142-
it.skip('Should update current account on menu item click', async () => {
142+
it('Should update current account on menu item click', async () => {
143143
mockUseAuthContext.mockImplementation(() => {
144144
return {
145145
loginAccounts: fake_accounts,

src/components/ApiTokenNavbarItem/__tests__/ApiTokenNavbarItem.test.tsx

Lines changed: 0 additions & 287 deletions
This file was deleted.

0 commit comments

Comments
 (0)