()
| 4 | import createProxy from '../../src/proxy'; |
| 5 | |
| 6 | const createFixtures = () => ({ |
| 7 | modern: { |
| 8 | shouldWarnOnBind: false, |
| 9 | |
| 10 | Counter1x: class Counter1x extends React.Component { |
| 11 | constructor(props) { |
| 12 | super(props); |
| 13 | this.state = { counter: 0 }; |
| 14 | } |
| 15 | |
| 16 | increment() { |
| 17 | this.setState({ |
| 18 | counter: this.state.counter + 1, |
| 19 | }); |
| 20 | } |
| 21 | |
| 22 | render() { |
| 23 | return <span>{this.state.counter}</span>; |
| 24 | } |
| 25 | }, |
| 26 | |
| 27 | Counter10x: class Counter10x extends React.Component { |
| 28 | constructor(props) { |
| 29 | super(props); |
| 30 | this.state = { counter: 0 }; |
| 31 | } |
| 32 | |
| 33 | increment() { |
| 34 | this.setState({ |
| 35 | counter: this.state.counter + 10, |
| 36 | }); |
| 37 | } |
| 38 | |
| 39 | render() { |
| 40 | return <span>{this.state.counter}</span>; |
| 41 | } |
| 42 | }, |
| 43 | |
| 44 | Counter100x: class Counter100x extends React.Component { |
| 45 | constructor(props) { |
| 46 | super(props); |
| 47 | this.state = { counter: 0 }; |
| 48 | } |
| 49 | |
| 50 | increment() { |
| 51 | this.setState({ |
| 52 | counter: this.state.counter + 100, |
| 53 | }); |
| 54 | } |
| 55 | |
| 56 | render() { |
| 57 | return <span>{this.state.counter}</span>; |
| 58 | } |
| 59 | }, |
| 60 | |
| 61 | CounterWithoutIncrementMethod: class CounterWithoutIncrementMethod extends React.Component { |
| 62 | constructor(props) { |
| 63 | super(props); |
no outgoing calls
no test coverage detected