test: remove dictation wiring and model-list inventory examples

This commit is contained in:
OrcaWin
2026-11-11 19:22:41 -08:00
parent 9fdb82119c
commit 93df8dd7f6
2 changed files with 0 additions and 54 deletions
-24
View File
@@ -1,6 +1,5 @@
import { describe, expect, it } from 'vitest'
import { removeFillerWords } from './dictation-filler-words'
import { createDictationTextPipeline } from './dictation-text-pipeline'
describe('removeFillerWords', () => {
it.each([
@@ -45,26 +44,3 @@ describe('removeFillerWords', () => {
expect(removeFillerWords('呃,好的。', undefined)).toBe('呃,好的。')
})
})
describe('createDictationTextPipeline', () => {
it('reads the language from a single-language model before the setting', () => {
const clean = createDictationTextPipeline({ language: 'en' }, { dictationLanguage: 'de' })
expect(clean?.('Äh, um, ship it.')).toBe('Äh ship it.')
})
it('reads the language from the setting for a multilingual model that takes it', () => {
const clean = createDictationTextPipeline(
{ language: 'multilingual', dictationLanguages: ['de', 'en'] },
{ dictationLanguage: 'de' }
)
expect(clean?.('Äh, um fünf Uhr.')).toBe('Um fünf Uhr.')
})
it('ignores a language setting the model ignores', () => {
const clean = createDictationTextPipeline(
{ language: 'multilingual' },
{ dictationLanguage: 'en' }
)
expect(clean?.('Er hat um zehn Uhr angerufen.')).toBe('Er hat um zehn Uhr angerufen.')
})
})
@@ -1,30 +0,0 @@
import { describe, expect, it } from 'vitest'
import { parseCursorModels } from './commit-message-model-parsers'
describe('parseCursorModels', () => {
it('reads named and bare cursor-agent rows, including a shared current and default marker', () => {
const stdout = [
'Available models',
'',
'auto - Auto (current, default)',
'gpt-5.3-codex-low - Codex 5.3 Low',
'composer-2',
'claude-opus-4-8-thinking-high - Claude Opus 4.8 Thinking High (current)',
'',
'Tip: use --model <id> (or /model <id> in interactive mode) to switch.'
].join('\n')
expect(
parseCursorModels(stdout).map(({ id, label, isDefault }) => ({ id, label, isDefault }))
).toEqual([
{ id: 'auto', label: 'Auto', isDefault: true },
{ id: 'gpt-5.3-codex-low', label: 'Codex 5.3 Low', isDefault: undefined },
{ id: 'composer-2', label: 'composer-2', isDefault: undefined },
{
id: 'claude-opus-4-8-thinking-high',
label: 'Claude Opus 4.8 Thinking High',
isDefault: undefined
}
])
})
})