test: remove five low-value string and predicate suites (#35722)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
OrcaWin
2026-10-29 01:18:15 -07:00
committed by GitHub
co-authored by OrcaWin
parent 6568e887ae
commit 4d81dc62a1
6 changed files with 0 additions and 90 deletions
-1
View File
@@ -10650,7 +10650,6 @@
"src/renderer/src/lib/monaco-languages/zig-highlighting.test.ts": 4871,
"src/renderer/src/lib/monaco-setup-steps.test.ts": 48,
"src/renderer/src/lib/native-chat-cli-fork-preparation.test.ts": 2392,
"src/shared/native-chat/transcript/native-chat-transcript-readability.test.ts": 35,
"src/renderer/src/lib/nested-repo-selected-paths.test.ts": 24,
"src/renderer/src/lib/new-agent-prompt-outcome.test.ts": 744,
"src/renderer/src/lib/new-tab-agent-menu-rows.test.ts": 362,
@@ -1,18 +0,0 @@
import { afterEach, expect, it } from 'vitest'
import { i18n } from '@/i18n/i18n'
import { CsvPreviewError } from './csv-preview-error'
import { formatCsvPreviewError } from './csv-preview-error-message'
afterEach(async () => {
await i18n.changeLanguage('en')
})
it('translates CSV error codes and passes other errors through', async () => {
await i18n.changeLanguage('es')
expect(formatCsvPreviewError(new CsvPreviewError('binary-data'))).toBe(
'Este archivo contiene datos binarios.'
)
expect(formatCsvPreviewError(new Error('EACCES: permission denied'))).toBe(
'EACCES: permission denied'
)
})
@@ -1,22 +0,0 @@
import { describe, expect, it } from 'vitest'
import { pluginVerifiedSourceLabel } from './PluginChips'
describe('pluginVerifiedSourceLabel', () => {
it.each([
[{ kind: 'official' } as const, null],
[{ kind: 'bundled' } as const, null],
[{ kind: 'dev' } as const, 'Dev · unverified'],
[{ kind: 'unverified' } as const, 'Unverified'],
[
{ kind: 'catalog', catalog: 'Acme Plugins', owner: 'github.com/acme' } as const,
'Acme Plugins · github.com/acme'
],
[
{ kind: 'catalog', catalog: null, owner: 'gitlab.com/acme/tools' } as const,
'gitlab.com/acme/tools'
],
[{ kind: 'catalog', catalog: null, owner: null } as const, 'Unverified']
])('labels %o as %s', (source, label) => {
expect(pluginVerifiedSourceLabel(source)).toBe(label)
})
})
@@ -1,14 +0,0 @@
import { afterEach, expect, it } from 'vitest'
import { i18n } from '@/i18n/i18n'
import { SIMULATOR_DEFAULT_TAB_LABEL, formatSimulatorTabLabel } from './simulator-tab-label'
afterEach(async () => {
await i18n.changeLanguage('en')
})
it('translates the stored default label but keeps device names', async () => {
await i18n.changeLanguage('es')
expect(formatSimulatorTabLabel(SIMULATOR_DEFAULT_TAB_LABEL)).toBe('Emulador móvil')
expect(formatSimulatorTabLabel('')).toBe('Emulador móvil')
expect(formatSimulatorTabLabel('iPhone 16 Pro')).toBe('iPhone 16 Pro')
})
@@ -1,11 +0,0 @@
import { describe, expect, it } from 'vitest'
import { isNativeChatTranscriptLocalReadable } from './native-chat-transcript-readability'
describe('native chat transcript readability', () => {
it('allows local and runtime-owned hosts but rejects Model-A SSH and unresolved hosts', () => {
expect(isNativeChatTranscriptLocalReadable(null)).toBe(true)
expect(isNativeChatTranscriptLocalReadable('runtime-ssh-env-1')).toBe(true)
expect(isNativeChatTranscriptLocalReadable('ssh-target-1')).toBe(false)
expect(isNativeChatTranscriptLocalReadable(undefined)).toBe(false)
})
})
@@ -1,24 +0,0 @@
import { describe, expect, it } from 'vitest'
import { isReservedPluginPublisher } from './plugin-publisher-reservation'
describe('isReservedPluginPublisher', () => {
it.each([
'stablyai',
'StablyAI',
'orca',
'orca-labs',
'Orcatools',
'openai',
'GitHub',
'official'
])('reserves %s', (publisher) => {
expect(isReservedPluginPublisher(publisher)).toBe(true)
})
it.each(['acme', 'gleam-community', 'githubber', 'mo-orca', '0rca'])(
'leaves %s alone',
(publisher) => {
expect(isReservedPluginPublisher(publisher)).toBe(false)
}
)
})