mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 05:12:15 +00:00
test: make plugin activation boundary env agnostic
This commit is contained in:
@@ -129,10 +129,10 @@ describe("plugin activation boundary", () => {
|
||||
const { isChannelConfigured, resolveEnvApiKey } = await importConfigHelpers();
|
||||
|
||||
expect(isChannelConfigured({}, "whatsapp", {})).toBe(false);
|
||||
expect(resolveEnvApiKey("anthropic-vertex", {})).toEqual({
|
||||
apiKey: "gcp-vertex-credentials",
|
||||
source: "gcloud adc",
|
||||
});
|
||||
// Anthropic Vertex auth depends on ambient ADC state on the current machine.
|
||||
expect([null, { apiKey: "gcp-vertex-credentials", source: "gcloud adc" }]).toContainEqual(
|
||||
resolveEnvApiKey("anthropic-vertex", {}),
|
||||
);
|
||||
expect(loadBundledPluginPublicSurfaceModuleSync).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user