Skip to content

Commit 9aedb82

Browse files
CodebuffAICodebuffAI
authored andcommitted
test: remove dead cli test code
1 parent 75ef3fc commit 9aedb82

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

cli/src/__tests__/path-completion.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ describe('getPathCompletion', () => {
168168
// Create a test directory structure we can control
169169
// Note: This test is tricky because we can't easily create dirs in home
170170
// So we'll test with the actual home directory if it has subdirs
171-
const homeDir = os.homedir()
172-
173171
// Try completing from home directory with tilde
174172
const result = getPathCompletion('~/')
175173

cli/src/__tests__/unit/copy-button.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,14 @@ describe('CopyButton - copied state reset timing', () => {
138138
})
139139

140140
test('multiple rapid clicks only create one active timer', () => {
141-
let isCopied = false
142141
let currentTimerId: number | null = null
143142

144143
const handleCopy = () => {
145144
if (currentTimerId !== null) {
146145
clearTimeout(currentTimerId)
147146
}
148-
const newState = copyButtonHandlers.handleCopy()
149-
isCopied = newState.isCopied
150-
currentTimerId = setTimeout(() => {
151-
isCopied = false
152-
}, COPIED_RESET_DELAY_MS) as unknown as number
147+
copyButtonHandlers.handleCopy()
148+
currentTimerId = setTimeout(() => {}, COPIED_RESET_DELAY_MS) as unknown as number
153149
}
154150

155151
handleCopy()

0 commit comments

Comments
 (0)