main
js 16 lines 370 Bytes
Raw
1 function useFoo(props) {
2 let x = [];
3 x.push(props.bar);
4 props.cond ? ((x = {}), (x = []), x.push(props.foo)) : null;
5 return x;
6 }
7
8 export const FIXTURE_ENTRYPOINT = {
9 fn: useFoo,
10 params: [{cond: false, foo: 2, bar: 55}],
11 sequentialRenders: [
12 {cond: false, foo: 2, bar: 55},
13 {cond: false, foo: 3, bar: 55},
14 {cond: true, foo: 3, bar: 55},
15 ],
16 };