import { describe, test, expect } from 'vitest';
import React from 'react';
import { Icon } from '../dist/iconify';
import { create } from 'react-test-renderer';
const iconData = {
body: '',
width: 24,
height: 24,
};
describe('Creating component', () => {
test('basic icon', () => {
const component = create();
const tree = component.toJSON();
expect(tree).toMatchObject({
type: 'iconify-icon',
props: {
icon: JSON.stringify(iconData),
},
children: null,
});
});
});