()
| 120 | |
| 121 | // Simulate handleCopy using the exported constant |
| 122 | const handleCopy = () => { |
| 123 | const newState = copyButtonHandlers.handleCopy() |
| 124 | isCopied = newState.isCopied |
| 125 | setTimeout(() => { |
| 126 | isCopied = false |
| 127 | }, COPIED_RESET_DELAY_MS) |
| 128 | } |
| 129 | |
| 130 | handleCopy() |
| 131 | expect(isCopied).toBe(true) |
no test coverage detected