Skip to content

Commit

Permalink
Fix Textarea test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Oct 17, 2024
1 parent e2a0f67 commit cfb314d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/react/src/Textarea/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
disabled={disabled}
rows={rows}
cols={cols}
className={className}
{...rest}
/>
</TextInputBaseWrapper>
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/__tests__/Textarea.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ describe('Textarea', () => {
</FeatureFlags>
)
}
expect(render(<Element />).container.firstChild?.firstChild).toHaveClass('test-class-name')
expect(render(<FeatureFlagElement />).container.firstChild?.firstChild).toHaveClass('test-class-name')
expect(render(<Element />).container.firstChild).toHaveClass('test-class-name')
expect(render(<FeatureFlagElement />).container.firstChild).toHaveClass('test-class-name')
})

it('renders a valid textarea input', () => {
Expand Down

0 comments on commit cfb314d

Please sign in to comment.