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(agent): fix the plugin slice tests broken on canary since #20519 (#20756)

Arvin Xu383bd4c69736
diff --git a/src/store/agent/slices/plugin/action.test.ts b/src/store/agent/slices/plugin/action.test.ts
index 543e22428d1..fc139279742 100644
--- a/src/store/agent/slices/plugin/action.test.ts
+++ b/src/store/agent/slices/plugin/action.test.ts
@@ -64,6 +64,7 @@ describe('PluginSlice Actions', () => {
plugins: [{ identifier: 'plugin-1', mode: 'pinned' }],
}),
expect.any(AbortSignal),
+ undefined,
);
});
@@ -92,6 +93,7 @@ describe('PluginSlice Actions', () => {
plugins: [],
}),
expect.any(AbortSignal),
+ undefined,
);
});
@@ -120,6 +122,7 @@ describe('PluginSlice Actions', () => {
plugins: [{ identifier: 'plugin-1', mode: 'pinned' }],
}),
expect.any(AbortSignal),
+ undefined,
);
});
@@ -148,6 +151,7 @@ describe('PluginSlice Actions', () => {
plugins: [],
}),
expect.any(AbortSignal),
+ undefined,
);
});
@@ -177,6 +181,7 @@ describe('PluginSlice Actions', () => {
plugins: [{ identifier: 'plugin-1', mode: 'pinned' }],
}),
expect.any(AbortSignal),
+ undefined,
);
});
@@ -205,6 +210,7 @@ describe('PluginSlice Actions', () => {
plugins: [{ identifier: 'plugin-1', mode: 'pinned' }],
}),
expect.any(AbortSignal),
+ undefined,
);
});
});
@@ -235,6 +241,7 @@ describe('PluginSlice Actions', () => {
plugins: [],
}),
expect.any(AbortSignal),
+ undefined,
);
});
@@ -264,6 +271,7 @@ describe('PluginSlice Actions', () => {
plugins: ['existing-plugin'],
}),
expect.any(AbortSignal),
+ undefined,
);
});
});
@@ -295,6 +303,7 @@ describe('PluginSlice Actions', () => {
plugins: [{ identifier: 'plugin-1', mode: 'disabled' }, 'plugin-2'],
}),
expect.any(AbortSignal),
+ undefined,
);
});
@@ -325,6 +334,7 @@ describe('PluginSlice Actions', () => {
plugins: [{ identifier: 'plugin-1', mode: 'pinned' }],
}),
expect.any(AbortSignal),
+ undefined,
);
});
@@ -357,6 +367,7 @@ describe('PluginSlice Actions', () => {
plugins: ['plugin-2'],
}),
expect.any(AbortSignal),
+ undefined,
);
});
});