import React from 'react'; import { mount } from 'enzyme'; import ConfigProvider from '..'; import Button from '../../button'; describe('ConfigProvider', () => { it('Content Security Policy', () => { const csp = { nonce: 'test-antd' }; const wrapper = mount( , ); expect(wrapper.find('Button').text()).toBe('确定'); }); });