import React from 'react'; import { describe, expect, test } from 'vitest'; import { manage } from '../src'; describe('manage React element', () => { test('default', async () => { const Ele = ; expect(Ele).toBeDefined(); // React element is not an exception, but will not be managed expect(() => manage(Ele)).not.toThrowError(); }); test('default 2', async () => { const o = { toolbarItems: [ 'about', '|', , ], }; const m = manage(o); expect(m).toBeDefined(); }); });