(list: any[] = ['a', 'b', 'c'])
| 7 | }); |
| 8 | |
| 9 | function getHook(list: any[] = ['a', 'b', 'c']) { |
| 10 | return renderHook(({ states }) => useStateList(states), { initialProps: { states: list } }); |
| 11 | } |
| 12 | |
| 13 | it('should return an object containing `state`, `next` and `prev`', () => { |
| 14 | const res = getHook().result.current; |
no test coverage detected
searching dependent graphs…