| 1 | function Component(props) { |
| 2 | const x = []; |
| 3 | const f = arg => { |
| 4 | const y = x; |
| 5 | y.push(arg); |
| 6 | }; |
| 7 | f(props.input); |
| 8 | |
| 9 | return [x[0]]; |
| 10 | } |
| 11 | |
| 12 | export const FIXTURE_ENTRYPOINT = { |
| 13 | fn: Component, |
| 14 | params: [], |
| 15 | sequentialRenders: [ |
| 16 | {input: 42}, |
| 17 | {input: 42}, |
| 18 | {input: 'sathya'}, |
| 19 | {input: 'sathya'}, |
| 20 | {input: 42}, |
| 21 | {input: 'sathya'}, |
| 22 | {input: 42}, |
| 23 | {input: 'sathya'}, |
| 24 | ], |
| 25 | }; |