()
| 103 | const visibleTestimonials = testimonials.slice(current, current + numVisible); |
| 104 | |
| 105 | const goToPrev = () => { |
| 106 | setCurrent((prev) => { |
| 107 | if (prev === 0) { |
| 108 | return testimonials.length - numVisible; |
| 109 | } else { |
| 110 | return prev - 1; |
| 111 | } |
| 112 | }); |
| 113 | }; |
| 114 | |
| 115 | const goToNext = () => { |
| 116 | setCurrent((prev) => { |
nothing calls this directly
no outgoing calls
no test coverage detected