mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
25 lines
522 B
TypeScript
25 lines
522 B
TypeScript
|
import React = require('react');
|
||
|
import {render, fireEvent} from '@testing-library/react';
|
||
|
import '../../src/themes/default';
|
||
|
import {render as amisRender} from '../../src/index';
|
||
|
import {makeEnv} from '../helper';
|
||
|
import 'jest-canvas-mock';
|
||
|
|
||
|
test('Renderer:bar-code', () => {
|
||
|
const {container} = render(
|
||
|
amisRender(
|
||
|
{
|
||
|
type: 'page',
|
||
|
body: {
|
||
|
type: 'barcode',
|
||
|
value: 'amis'
|
||
|
}
|
||
|
},
|
||
|
{},
|
||
|
makeEnv({})
|
||
|
)
|
||
|
);
|
||
|
|
||
|
expect(container).toMatchSnapshot();
|
||
|
});
|