Add additional lint rules
This commit is contained in:
parent
02d782c3da
commit
420b18eb78
67 changed files with 3686 additions and 1415 deletions
|
|
@ -130,7 +130,7 @@ describe('Icon', () => {
|
|||
});
|
||||
|
||||
it('renders null for invalid icon name', () => {
|
||||
const { container } = render(<Icon name="nonexistent" as any />);
|
||||
const { container } = render(<Icon name={"nonexistent" as any} />);
|
||||
const svg = container.querySelector('svg');
|
||||
expect(svg).toBeInTheDocument();
|
||||
expect(svg?.childNodes.length).toBe(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue