import React = require('react');
import {render} from '@testing-library/react';
import '../../src';
import {render as amisRender} from '../../src';
import {makeEnv} from '../helper';
test('Renderer:mapping', async () => {
const {container} = render(
amisRender(
{
type: 'mapping',
mapping: {
1: "漂亮",
2: "开心",
3: "惊吓",
4: "紧张",
'*': '其他:${type}'
}
},
{},
makeEnv({})
)
);
expect(container).toMatchSnapshot();
});