Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✅ test: avoid implicit any in DeepSeek model assertion (#17581)

Nekoffbc1f4aa317
diff --git a/packages/model-runtime/src/providers/deepseek/__tests__/index.test.ts b/packages/model-runtime/src/providers/deepseek/__tests__/index.test.ts
index 0d775ba7fff..2f96b8bb1ea 100644
--- a/packages/model-runtime/src/providers/deepseek/__tests__/index.test.ts
+++ b/packages/model-runtime/src/providers/deepseek/__tests__/index.test.ts
@@ -159,7 +159,7 @@ describe('LobeDeepSeekAI', () => {
expect(fetchSpy).toHaveBeenCalledTimes(1);
expect(requestURL).toBe(expectedURL);
- expect(models?.map(({ id }) => id)).toContain('deepseek-chat');
+ expect(models).toContainEqual(expect.objectContaining({ id: 'deepseek-chat' }));
},
);
});