amis2/packages/amis/__tests__/renderers/Video.test.tsx
2022-06-01 15:06:00 +08:00

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();
});