Files

18 lines
539 B
TypeScript
Raw Permalink Normal View History

import { describe, it, expect } from 'vitest';
import { createLucideIcon } from '../src/lucide-astro';
import { airVent } from './testIconNodes';
import { render } from './utils';
describe('Using createLucideIcon', () => {
it('should create a component from an iconNode', async () => {
const AirVent = createLucideIcon({
name: 'air-vent',
node: airVent,
});
const { container } = await render(AirVent);
expect(container.innerHTML).toBeDefined();
expect(container.innerHTML).toMatchSnapshot();
});
});