Skip to content

Commit

Permalink
fix(input) fix input test
Browse files Browse the repository at this point in the history
  • Loading branch information
pinarkizilarslan committed Dec 25, 2024
1 parent 3f8d409 commit 92b51eb
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/components/Input/InputLabel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { AnimatedViewPropsType, AnimatedTextPropsType } from './types';
describe('Input Label', () => {
let label: string | null;
let labelFixed: boolean;
let required: boolean;
let requiredText: boolean;
let errorState: boolean;
let successState: boolean;
let animatedViewProps: AnimatedViewPropsType;
Expand All @@ -17,8 +15,6 @@ describe('Input Label', () => {
beforeEach(() => {
label = 'Label';
labelFixed = false;
required = false;
requiredText = false;
errorState = false;
successState = false;
animatedViewProps = {};
Expand All @@ -35,7 +31,6 @@ describe('Input Label', () => {
<InputLabel
label={label}
labelFixed={labelFixed}
required={required}
errorState={errorState}
successState={successState}
animatedViewProps={animatedViewProps}
Expand All @@ -54,8 +49,6 @@ describe('Input Label', () => {
<InputLabel
label={label}
labelFixed={labelFixed}
required={required}
requiredText={requiredText}
errorState={errorState}
successState={successState}
animatedViewProps={animatedViewProps}
Expand All @@ -69,16 +62,11 @@ describe('Input Label', () => {
});

test('should render outlined label with optional correctly', () => {
// given
required = false;

// when
const { toJSON } = render(
<InputLabel
label={label}
labelFixed={labelFixed}
required={required}
requiredText={requiredText}
errorState={errorState}
successState={successState}
animatedViewProps={animatedViewProps}
Expand All @@ -100,8 +88,6 @@ describe('Input Label', () => {
<InputLabel
label={label}
labelFixed={labelFixed}
required={required}
requiredText={requiredText}
errorState={errorState}
successState={successState}
animatedViewProps={animatedViewProps}
Expand All @@ -116,16 +102,13 @@ describe('Input Label', () => {

test('should render fixed label with optional correctly', () => {
// given
required = false;
labelFixed = true;

// when
const { toJSON } = render(
<InputLabel
label={label}
labelFixed={labelFixed}
required={required}
requiredText={requiredText}
errorState={errorState}
successState={successState}
animatedViewProps={animatedViewProps}
Expand Down

0 comments on commit 92b51eb

Please sign in to comment.