mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 13:26:04 -06:00
test: tighten bundled capability snapshot assertion
This commit is contained in:
@@ -46,14 +46,27 @@ describe("bundled capability metadata", () => {
|
||||
.toSorted((left, right) => left.pluginId.localeCompare(right.pluginId));
|
||||
|
||||
expect(BUNDLED_PLUGIN_CONTRACT_SNAPSHOTS).toEqual(expected);
|
||||
expect(BUNDLED_PLUGIN_CONTRACT_SNAPSHOTS).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
pluginId: "migrate-hermes",
|
||||
migrationProviderIds: ["hermes"],
|
||||
}),
|
||||
]),
|
||||
);
|
||||
expect(
|
||||
BUNDLED_PLUGIN_CONTRACT_SNAPSHOTS.find((entry) => entry.pluginId === "migrate-hermes"),
|
||||
).toEqual({
|
||||
pluginId: "migrate-hermes",
|
||||
cliBackendIds: [],
|
||||
providerIds: [],
|
||||
providerAuthEnvVars: {},
|
||||
speechProviderIds: [],
|
||||
realtimeTranscriptionProviderIds: [],
|
||||
realtimeVoiceProviderIds: [],
|
||||
mediaUnderstandingProviderIds: [],
|
||||
documentExtractorIds: [],
|
||||
imageGenerationProviderIds: [],
|
||||
videoGenerationProviderIds: [],
|
||||
musicGenerationProviderIds: [],
|
||||
webContentExtractorIds: [],
|
||||
webFetchProviderIds: [],
|
||||
webSearchProviderIds: [],
|
||||
migrationProviderIds: ["hermes"],
|
||||
toolNames: [],
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps lightweight alias maps aligned with bundled plugin manifests", () => {
|
||||
|
||||
Reference in New Issue
Block a user