Skip to content

Commit

Permalink
fix: removed unwanted file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-deriv committed Sep 20, 2023
1 parent 2ce91d0 commit 58eb9b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/hooks/src/__tests__/useCFDAllAccounts.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('useCFDAllAccounts', () => {
);
const { result } = renderHook(() => useCFDAllAccounts(), { wrapper });

expect(result.current).toHaveLength(0);
expect(result.current.length).toBe(0);
});

test('should return proper data when client has MT5 accounts', async () => {
Expand All @@ -33,7 +33,7 @@ describe('useCFDAllAccounts', () => {
);
const { result } = renderHook(() => useCFDAllAccounts(), { wrapper });

expect(result.current).toHaveLength(1);
expect(result.current.length).toBe(1);
});

test('should return proper data when client has dxtrade accounts', async () => {
Expand All @@ -54,7 +54,7 @@ describe('useCFDAllAccounts', () => {
);
const { result } = renderHook(() => useCFDAllAccounts(), { wrapper });

expect(result.current).toHaveLength(1);
expect(result.current.length).toBe(1);
});

test('should return proper data when client has ctrader accounts', async () => {
Expand All @@ -75,7 +75,7 @@ describe('useCFDAllAccounts', () => {
);
const { result } = renderHook(() => useCFDAllAccounts(), { wrapper });

expect(result.current).toHaveLength(1);
expect(result.current.length).toBe(1);
});

test('should return proper data when client has MT5, ctrader and dxtrade accounts', async () => {
Expand Down Expand Up @@ -110,6 +110,6 @@ describe('useCFDAllAccounts', () => {
);
const { result } = renderHook(() => useCFDAllAccounts(), { wrapper });

expect(result.current).toHaveLength(3);
expect(result.current.length).toBe(3);
});
});

0 comments on commit 58eb9b8

Please sign in to comment.