mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
23 lines
433 B
TypeScript
23 lines
433 B
TypeScript
import {render} from '@testing-library/react';
|
|
import {render as amisRender} from '../../src';
|
|
import {makeEnv} from '../helper';
|
|
|
|
test('Renderer:alert', () => {
|
|
const {container} = render(
|
|
amisRender(
|
|
{
|
|
type: 'video',
|
|
src: '${url}'
|
|
},
|
|
{
|
|
data: {
|
|
url: 'https://example.com/video.mp4'
|
|
}
|
|
},
|
|
makeEnv({})
|
|
)
|
|
);
|
|
|
|
expect(container).toMatchSnapshot();
|
|
});
|