19 lines
746 B
TypeScript
19 lines
746 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 the Codex auth bridge helper", () => {
|
|
expect(typeof providerAuthRuntime.prepareCodexAuthBridge).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");
|
|
});
|
|
});
|