Files
aitbc/packages/js/aitbc-sdk/src/client.test.ts
AITBC System b033923756 chore: normalize file permissions across repository
- Remove executable permissions from configuration files (.editorconfig, .env.example, .gitignore)
- Remove executable permissions from documentation files (README.md, LICENSE, SECURITY.md)
- Remove executable permissions from web assets (HTML, CSS, JS files)
- Remove executable permissions from data files (JSON, SQL, YAML, requirements.txt)
- Remove executable permissions from source code files across all apps
- Add executable permissions to Python
2026-03-08 11:26:18 +01:00

24 lines
702 B
TypeScript

import { describe, expect, it } from "vitest";
import { AitbcClient } from "./client";
const createClient = () =>
new AitbcClient({
baseUrl: "https://api.example.com",
apiKey: "test-key",
fetchImpl: async (input: RequestInfo | URL, init?: RequestInit) =>
new Response(JSON.stringify({ job_id: "job", candidates: [] }), {
status: 200,
headers: { "Content-Type": "application/json" },
}),
});
describe("AitbcClient", () => {
it("sends match requests", async () => {
const client = createClient();
const response = await client.match({ jobId: "job" });
expect(response.jobId).toBe("job");
expect(response.candidates).toEqual([]);
});
});