amis2/__tests__/renderers/Video.test.tsx

23 lines
433 B
TypeScript
Raw Normal View History

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