ocrcc-chatbox/jest/setup.js

12 lines
257 B
JavaScript
Raw Normal View History

2018-05-30 01:56:01 +00:00
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
2018-06-03 18:28:12 +00:00
Enzyme.configure({ adapter: new Adapter() });
Object.defineProperty(document, 'readyState', {
2018-06-09 13:13:49 +00:00
value: 'complete',
writable: true,
enumerable: true,
configurable: true,
2018-06-03 18:28:12 +00:00
});