mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
27 lines
638 B
TypeScript
27 lines
638 B
TypeScript
import test from 'ava';
|
|
import parse from '../src';
|
|
import { IMaterializeOptions } from '../src/types';
|
|
|
|
const reactColorComponent = 'react-color@2.18.1';
|
|
const customComponent = 'mc-hello@1.0.1';
|
|
|
|
test('materialize react-color by online', async t => {
|
|
const options: IMaterializeOptions = {
|
|
entry: reactColorComponent,
|
|
accesser: 'online',
|
|
};
|
|
|
|
const actual = await parse(options);
|
|
t.snapshot(actual);
|
|
});
|
|
|
|
test('materialize mc-hello by online', async t => {
|
|
const options: IMaterializeOptions = {
|
|
entry: customComponent,
|
|
accesser: 'online',
|
|
};
|
|
|
|
const actual = await parse(options);
|
|
t.snapshot(actual);
|
|
});
|