mirror of https://github.com/openclaw/openclaw.git
test: make plugin activation boundary env agnostic
This commit is contained in:
parent
bff6025bde
commit
64581c655d
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue