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.

🐛 fix(test): avoid optional builder context access (#16938)

AmAzing-cfbb2b3aa621
diff --git a/src/store/agent/selectors/agentByIdSelectors.test.ts b/src/store/agent/selectors/agentByIdSelectors.test.ts
index 656e76e811c..31c2c0e5c7d 100644
--- a/src/store/agent/selectors/agentByIdSelectors.test.ts
+++ b/src/store/agent/selectors/agentByIdSelectors.test.ts
@@ -79,7 +79,7 @@ describe('agentByIdSelectors', () => {
const context = agentByIdSelectors.getAgentBuilderContextById('agent-1')(state);
- expect(context.config.plugins).toEqual(['search']);
+ expect(context.config).toMatchObject({ plugins: ['search'] });
});
});