mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-18 18:49:24 +01:00
16 lines
515 B
TypeScript
16 lines
515 B
TypeScript
|
|
import { describe, it, expect } from 'vitest';
|
||
|
|
import { createLucideIcon } from '../src/lucide-react';
|
||
|
|
import { airVent } from './testIconNodes';
|
||
|
|
import { render } from '@testing-library/react';
|
||
|
|
|
||
|
|
describe('Using createLucideIcon', () => {
|
||
|
|
it('should create a component from an iconNode', () => {
|
||
|
|
const AirVent = createLucideIcon('AirVent', airVent);
|
||
|
|
|
||
|
|
const { container } = render(<AirVent />);
|
||
|
|
|
||
|
|
expect(container.firstChild).toMatchSnapshot();
|
||
|
|
expect(container.firstChild).toBeDefined();
|
||
|
|
});
|
||
|
|
});
|