Skip to content

Commit

Permalink
fix: linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
marabesi committed Jun 9, 2024
1 parent d5cd312 commit b7c4aff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__test__/components/InputText.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ describe('input text component', () => {

test('renders input text', () => {
render(<InputText data-testid="text"/>);
expect(screen.queryByTestId('text')).toBeInTheDocument();
expect(screen.getByTestId('text')).toBeInTheDocument();
});

test('renders input text with custom class', () => {
const className = 'randomclass';
render(<InputText data-testid="text" className={className}/>);
expect(screen.queryByTestId('text')).toHaveAttribute('class', expect.stringContaining(className));
expect(screen.getByTestId('text')).toHaveAttribute('class', expect.stringContaining(className));
});
});

0 comments on commit b7c4aff

Please sign in to comment.