refactor(tests): trim redundant time and speech fixtures (#150009)

* refactor(deepseek): remove redundant model limit assertions

* refactor(ai): simplify WebSocket test fixture

* refactor(synthetic): remove redundant onboarding assertions

* refactor(llm): deduplicate retry corpus examples

* refactor(kilocode): remove duplicate catalog membership test

* refactor(tests): remove redundant Tencent and Cohere checks

* refactor(test): remove redundant home-path test setup

* refactor(vercel-ai-gateway): remove redundant thinking level scan

* refactor(tests): trim redundant time and speech fixtures
This commit is contained in:
Vincent Koc 2026-09-16 19:51:16 +08:00 • committed by GitHub
parent 809c4dfc15
commit f1150c3a5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View file

@ -23,10 +23,9 @@ type GuardRequest = {
auditContext?: string;
};
function queueGuardedResponse(response: Response): { release: ReturnType<typeof vi.fn> } {
function queueGuardedResponse(response: Response) {
const release = vi.fn(async () => {});
fetchWithSsrFGuardMock.mockResolvedValueOnce({ response, release });
return { release };
}
function lastGuardRequest(): GuardRequest {

View file

@ -349,7 +349,6 @@ describe("format-relative", () => {
{ input: 7200000, expected: "2h ago" },
{ input: 47 * 3600000, expected: "47h ago" },
{ input: 48 * 3600000, expected: "2d ago" },
{ input: 172800000, expected: "2d ago" },
]);
});