This commit is contained in:
@@ -89,4 +89,9 @@ describe('InputField', () => {
|
||||
expect(container.querySelector('label')).toHaveClass('inline-flex');
|
||||
expect(container.querySelector('label > div')).not.toHaveClass('mt-1');
|
||||
});
|
||||
|
||||
it('supports rendering without a label', () => {
|
||||
const { container } = render(<InputField type="text" value="" onChange={() => {}} />);
|
||||
expect(container.querySelector('label > span')).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user