diff --git a/src/shared/dictation-filler-words.test.ts b/src/shared/dictation-filler-words.test.ts index ccc0abe9ee7..13405b8f6a7 100644 --- a/src/shared/dictation-filler-words.test.ts +++ b/src/shared/dictation-filler-words.test.ts @@ -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.') - }) -}) diff --git a/src/shared/source-control/ai/generation/commit-message-model-parsers.test.ts b/src/shared/source-control/ai/generation/commit-message-model-parsers.test.ts deleted file mode 100644 index 9c5e5ed3d29..00000000000 --- a/src/shared/source-control/ai/generation/commit-message-model-parsers.test.ts +++ /dev/null @@ -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 (or /model 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 - } - ]) - }) -})