import React from 'react'; import { Icon } from '../../dist/offline'; import { describe, test, expect } from 'vitest'; import { render } from '@testing-library/react'; describe('Empty icon', () => { test('basic test', () => { // @ts-expect-error const renderResult = render(); expect(renderResult.container.innerHTML).toEqual(''); }); test('with child node', () => { const renderResult = render( // @ts-expect-error ); expect(renderResult.container.innerHTML).toEqual( '' ); }); test('with text child node', () => { // @ts-expect-error const renderResult = render(icon); expect(renderResult.container.innerHTML).toEqual('icon'); }); test('with multiple childen', () => { const renderResult = render( // @ts-expect-error Home ); expect(renderResult.container.innerHTML).toEqual( 'Home' ); }); });