Files
openclaw/src/plugin-sdk/provider-auth-runtime.test.ts
2026-04-23 22:23:21 +01:00

15 lines
606 B
TypeScript

import { describe, expect, it } from "vitest";
import * as providerAuthRuntime from "./provider-auth-runtime.js";
describe("plugin-sdk provider-auth-runtime", () => {
it("exports the runtime-ready auth helper", () => {
expect(typeof providerAuthRuntime.getRuntimeAuthForModel).toBe("function");
});
it("exports OAuth callback helpers", () => {
expect(typeof providerAuthRuntime.generateOAuthState).toBe("function");
expect(typeof providerAuthRuntime.parseOAuthCallbackInput).toBe("function");
expect(typeof providerAuthRuntime.waitForLocalOAuthCallback).toBe("function");
});
});