import React, { useState } from 'react'; import { mount } from 'enzyme'; import { SmileOutlined } from '@ant-design/icons'; import { fireEvent, render } from '@testing-library/react'; import ConfigProvider, { ConfigContext } from '..'; import Button from '../../button'; import Table from '../../table'; import Input from '../../input'; import mountTest from '../../../tests/shared/mountTest'; describe('ConfigProvider', () => { mountTest(() => (
)); it('Content Security Policy', () => { const csp = { nonce: 'test-antd' }; const wrapper = mount( , ); expect(wrapper.find('Button').text()).toBe('确定'); }); it('renderEmpty', () => { const wrapper = mount(
empty placeholder
}> , ); expect(wrapper.text()).toContain('empty placeholder'); }); it('nest prefixCls', () => { const wrapper = mount(