mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 09:39:25 +00:00
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:
parent
809c4dfc15
commit
f1150c3a5a
2 changed files with 1 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
]);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue