Skip to content

Commit

Permalink
test cases updated
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetMA08 committed Aug 21, 2024
1 parent 46bb5ff commit 20e62aa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 29 deletions.
4 changes: 2 additions & 2 deletions src/components/ConnectForm/ConnectForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export default function ConnectForm() {
}
}
} catch (error: any) {
console.error(error?.message);
console.log(error?.message);
throw error;
}
};
Expand Down Expand Up @@ -645,7 +645,7 @@ export default function ConnectForm() {
{accord.id ===
'panel0' &&
AUTO_CREATE_CUSTOMER
? 'AUTO COMPLETE'
? 'AUTO CREATION COMPLETE'
: 'COMPLETE'}
</Typography>
)
Expand Down
26 changes: 0 additions & 26 deletions src/components/ConnectForm/Forms/UserNameForm/index.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/tests/ConnectForm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('Testing ConnectForm Component', () => {
);

await user.click(screen.getByRole('button', { name: /View demo/i }));
const element = await screen.findByText(/AUTO COMPLETE/i);
const element = await screen.findByText(/AUTO CREATION COMPLETE/i);
expect(element).toBeInTheDocument();
const connectElement = await screen.findByText('Connect Bank Account');
expect(connectElement).toBeInTheDocument();
Expand Down
12 changes: 12 additions & 0 deletions src/tests/ExternalIcon.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { render } from '@testing-library/react';
import { ExternalIcon } from '../components';

describe('Testing ExternalIcon component', () => {
test('Should render Accounts', () => {
render(
(
<ExternalIcon data={'#FFFFFF'} />
) as React.ReactElement
);
});
})

0 comments on commit 20e62aa

Please sign in to comment.