🎨 style(vscode): eslint 自动修复格式与排序

Claude-Session: https://claude.ai/code/session_01HTMgwaE3woqM5yvsHiuSAa
This commit is contained in:
cruldra committed 2026-08-31 22:30:42 +08:00
1 parent df35bcfd49
commit 8c22a29ce5
41 files changed
+248 -167

No files matched your search

+4 -4
View File
@@ -34,24 +34,24 @@ describe('resolveClaudeBin', () => {
expect(resolveClaudeBin({ PATH: dir }, '/no-such-home')).toBe(bin)
})
it('PATH 未命中时回退到 $HOME/.local/bin/claude', () => {
it('pATH 未命中时回退到 $HOME/.local/bin/claude', () => {
const home = tempDir()
const bin = touchClaude(path.join(home, '.local', 'bin'))
expect(resolveClaudeBin({ PATH: '' }, home)).toBe(bin)
})
it('PATH 未命中时回退到 $HOME/.claude/local/claude', () => {
it('pATH 未命中时回退到 $HOME/.claude/local/claude', () => {
const home = tempDir()
const bin = touchClaude(path.join(home, '.claude', 'local'))
expect(resolveClaudeBin({ PATH: '' }, home)).toBe(bin)
})
it('PATH 与候选皆空 → null', () => {
it('pATH 与候选皆空 → null', () => {
const home = tempDir()
expect(resolveClaudeBin({ PATH: '' }, home)).toBeNull()
})
it('PATH 中目录不存在时跳过并继续', () => {
it('pATH 中目录不存在时跳过并继续', () => {
const home = tempDir()
const bin = touchClaude(path.join(home, '.local', 'bin'))
expect(resolveClaudeBin({ PATH: '/definitely/missing/bin' }, home)).toBe(bin)