test: remove 56 low-value presentation, CLI, and reload tests (#41389)

* test: remove presentation and command-selection inventories

* test: remove CLI and display projection inventories

* test: remove browser reload projection suite

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
OrcaWin
2026-11-11 21:08:44 -08:00
committed by GitHub
co-authored by OrcaWin
parent 545b493529
commit 9a04aa89ef
17 changed files with 33 additions and 880 deletions
-32
View File
@@ -1,32 +0,0 @@
import { describe, expect, it } from 'vitest'
import { GITHUB_OWNER_SLUG_RE, isGitHubOwnerSlug } from './owner-slug'
describe('GitHub owner slug alphabet', () => {
it('accepts plain logins and Enterprise Managed User logins', () => {
for (const owner of ['acme', 'acme-co', 'user1', 'octocat_acme', 'acme_co']) {
expect(GITHUB_OWNER_SLUG_RE.test(owner)).toBe(true)
expect(isGitHubOwnerSlug(owner)).toBe(true)
}
})
it('rejects a leading underscore, hyphen or dot, and path-shaped values', () => {
for (const owner of [
'_acme',
'-acme',
'.acme',
'a/b',
'a.b',
'a_b/c',
'a_b\\c',
'a_b%2Fc',
'a_b?c',
'a_b#c',
''
]) {
expect(GITHUB_OWNER_SLUG_RE.test(owner)).toBe(false)
expect(isGitHubOwnerSlug(owner)).toBe(false)
}
expect(isGitHubOwnerSlug(123)).toBe(false)
})
})
@@ -1,20 +0,0 @@
import { afterEach, describe, expect, it, vi } from 'vitest'
import {
GITHUB_PR_REVIEWER_INPUT_MAX_BYTES,
parseGitHubReviewerInputLogins
} from './pr-reviewer-display'
afterEach(() => {
vi.restoreAllMocks()
})
describe('GitHub PR reviewer display', () => {
it('rejects oversized reviewer input before tokenizing pasted text', () => {
const split = vi.spyOn(String.prototype, 'split')
const oversized = 'secret-reviewer,'.repeat(GITHUB_PR_REVIEWER_INPUT_MAX_BYTES)
expect(parseGitHubReviewerInputLogins(oversized)).toEqual([])
expect(split).not.toHaveBeenCalled()
})
})