mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 08:10:43 +00:00
15 lines
606 B
TypeScript
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");
|
|
});
|
|
});
|