import React from '../src/May'
// import React from "../dist/ReactANU";
describe('may.js', () => {
it('mayRender', () => {
spyOn(console, 'error');
var container = document.createElement('div');
class Child extends React.Component {
render() {
return (
{this.props.val}
);
}
}
class Parent extends React.Component {
constructor() {
super();
this.state = { val: 'I wonder' };
}
Change = () => {
this.setState({ val: 'I see' });
}
render() {
return (
{this.state.val === 'I wonder' ? : }
{this.state.val === 'I wonder' ? : }
);
// if (this.state.val === 'I wonder') {
// return (
//
//
//
//
// );
// } else {
// return (
//
//
//
//
// );
// }
}
}
React.render(, container);
document.body.appendChild(container);
expect(console.error.calls.count()).toBe(0);
});
})