+
)
diff --git a/components/design/IconButton/IconButton.test.tsx b/components/design/IconButton/IconButton.test.tsx
deleted file mode 100644
index 56df7e0..0000000
--- a/components/design/IconButton/IconButton.test.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import { render } from '@testing-library/react'
-import { CogIcon } from '@heroicons/react/solid'
-
-import { IconButton } from './IconButton'
-
-describe('
', () => {
- it('should render successfully', () => {
- const { baseElement } = render(
-
-
-
- )
- expect(baseElement).toBeTruthy()
- })
-})
diff --git a/components/design/IconLink/IconLink.test.tsx b/components/design/IconLink/IconLink.test.tsx
deleted file mode 100644
index c4f2241..0000000
--- a/components/design/IconLink/IconLink.test.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import { render } from '@testing-library/react'
-
-import { IconLink } from './IconLink'
-
-describe('
', () => {
- it('should render successfully', () => {
- const { baseElement } = render(
)
- expect(baseElement).toBeTruthy()
- })
-})
diff --git a/components/design/Input/Input.test.tsx b/components/design/Input/Input.test.tsx
deleted file mode 100644
index 5c2be43..0000000
--- a/components/design/Input/Input.test.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import { render, fireEvent } from '@testing-library/react'
-
-import { Input, getInputType } from '.'
-
-describe('
', () => {
- it('should render the label', () => {
- const labelContent = 'label content'
- const { getByText } = render(
)
- expect(getByText(labelContent)).toBeInTheDocument()
- })
-
- it('should not render forgot password link', () => {
- const { queryByTestId } = render(
-
- )
- const forgotPasswordLink = queryByTestId('forgot-password-link')
- expect(forgotPasswordLink).not.toBeInTheDocument()
- })
-
- it('should render forgot password link', () => {
- const { queryByTestId } = render(
-
- )
- const forgotPasswordLink = queryByTestId('forgot-password-link')
- expect(forgotPasswordLink).toBeInTheDocument()
- })
-
- it('should not render the eye icon if the input is not of type "password"', () => {
- const { queryByTestId } = render(
)
- const passwordEye = queryByTestId('password-eye')
- expect(passwordEye).not.toBeInTheDocument()
- })
-
- it('should handlePassword with eye icon', async () => {
- const { findByTestId } = render(
)
- const passwordEye = await findByTestId('password-eye')
- const input = await findByTestId('input')
- expect(input).toHaveAttribute('type', 'password')
- fireEvent.click(passwordEye)
- expect(input).toHaveAttribute('type', 'text')
- })
-})
-
-describe('getInputType', () => {
- it('should return `text`', () => {
- expect(getInputType('password')).toEqual('text')
- })
-
- it('should return `password`', () => {
- expect(getInputType('text')).toEqual('password')
- })
-})
diff --git a/components/design/Input/Input.tsx b/components/design/Input/Input.tsx
index 8302df7..1c94e05 100644
--- a/components/design/Input/Input.tsx
+++ b/components/design/Input/Input.tsx
@@ -47,7 +47,7 @@ export const Input: React.FC
= (props) => {
{t('authentication:forgot-password')}
@@ -56,7 +56,6 @@ export const Input: React.FC = (props) => {
= (props) => {
/>
{type === 'password' && (
diff --git a/components/design/Loader/Loader.test.tsx b/components/design/Loader/Loader.test.tsx
deleted file mode 100644
index 608a4c4..0000000
--- a/components/design/Loader/Loader.test.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import { render } from '@testing-library/react'
-
-import { Loader } from '.'
-
-describe('
', () => {
- it('should render with correct width and height', async () => {
- const size = 20
- const { findByTestId } = render(
)
- const progressSpinner = await findByTestId('progress-spinner')
- expect(progressSpinner).toHaveStyle(`width: ${size}px`)
- expect(progressSpinner).toHaveStyle(`height: ${size}px`)
- })
-
- it('should render with default width and height', async () => {
- const { findByTestId } = render(
)
- const progressSpinner = await findByTestId('progress-spinner')
- expect(progressSpinner).toHaveStyle('width: 50px')
- expect(progressSpinner).toHaveStyle('height: 50px')
- })
-})
diff --git a/components/design/Loader/Loader.tsx b/components/design/Loader/Loader.tsx
index 814790b..9f2f771 100644
--- a/components/design/Loader/Loader.tsx
+++ b/components/design/Loader/Loader.tsx
@@ -9,7 +9,7 @@ export const Loader: React.FC
= (props) => {
return (
-
+