Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

544 B
Raw Blame
import { describe, expect, it } from "vitest";
import { isSdkOrigin } from "./sdk-origin";

describe("isSdkOrigin", () => {
  it.each([
    "[email protected]",
    "[email protected]",
    "[email protected]",
    "[email protected]",
  ])("accepts %s", origin => {
    expect(isSdkOrigin(origin)).toBe(true);
  });

  it.each([
    "api",
    "website",
    "mcp-server",
    "[email protected]",
    "[email protected]",
    "[email protected]",
  ])("rejects %s", origin => {
    expect(isSdkOrigin(origin)).toBe(false);
  });
});