mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
* fix: add null protection for LowcodeTypes.shape, to solve the error with umijs/max >= 4.0.30
14 lines
427 B
TypeScript
14 lines
427 B
TypeScript
import '../../fixtures/window';
|
|
import { parseMetadata } from '../../../src/builtin-simulator/utils/parse-metadata';
|
|
|
|
describe('parseMetadata', () => {
|
|
it('parseMetadata', async () => {
|
|
const md1 = parseMetadata('Div');
|
|
const md2 = parseMetadata({ componentName: 'Div' });
|
|
});
|
|
it('LowcodeTypes.shape', async () => {
|
|
const result = (window as any).PropTypes.shape()
|
|
expect(result).toBeDefined();
|
|
});
|
|
});
|