import React from 'react'; import { mount } from 'enzyme'; import ConfigProvider from '..'; import Button from '../../button'; 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('确定'); }); });