Skip to content

Commit aa2b977

Browse files
aether-agent[bot]CodebuffAI
andauthored
test: remove dead CLI test code (#491)
Co-authored-by: CodebuffAI <189203002+CodebuffAI@users.noreply.github.com>
1 parent 5468a35 commit aa2b977

File tree

3 files changed

+2
-71
lines changed

3 files changed

+2
-71
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()

docs/evalbuff/interpreting-task-prompts.md

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)