mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-07-20 12:40:21 +08:00
Added compatibility for react 0.14
This commit is contained in:
@@ -18,6 +18,6 @@ describe('MainComponent', () => {
|
||||
});
|
||||
|
||||
it('should have its component name as default className', () => {
|
||||
expect(MainComponent._store.props.className).to.equal('index');
|
||||
expect(MainComponent.props.className).to.equal('index');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
|
||||
* @author somonsmith
|
||||
*/
|
||||
import React from 'react/addons';
|
||||
const TestUtils = React.addons.TestUtils;
|
||||
import React from 'react';
|
||||
import TestUtils from 'react-addons-test-utils';
|
||||
|
||||
/**
|
||||
* Get the shallow rendered component
|
||||
|
||||
Reference in New Issue
Block a user