mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:28:37 +08:00
23 lines
471 B
TypeScript
23 lines
471 B
TypeScript
|
import React = require('react');
|
||
|
import {render} from '@testing-library/react';
|
||
|
import '../../src';
|
||
|
import {render as amisRender} from '../../src';
|
||
|
import {makeEnv} from '../helper';
|
||
|
|
||
|
test('Renderer:amisRender test', () => {
|
||
|
const {container} = render(
|
||
|
amisRender(
|
||
|
{
|
||
|
type: 'amis',
|
||
|
value: {
|
||
|
type: 'tpl',
|
||
|
tpl: 'hello world'
|
||
|
}
|
||
|
},
|
||
|
{},
|
||
|
makeEnv({})
|
||
|
)
|
||
|
);
|
||
|
expect(container).toMatchSnapshot();
|
||
|
});
|