MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / handleCopy

Function handleCopy

cli/src/__tests__/unit/copy-button.test.ts:122–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers 1

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected