* chore(client): rename function module * chore: allow client to be created multiple times singleton client is not the default but it still present as a compatibility layer * chore: update docs * feat(client): improved result typing * chore: update demo app code * chore: updated reference docs * chore: update proxy code * chore: alpha release * chore: fix lint staged rule * chore: clean-up docs * chore: reference docs updated
10 lines
285 B
TypeScript
10 lines
285 B
TypeScript
import { buildUrl } from "./request";
|
|
|
|
describe("The function test suite", () => {
|
|
it("should build the URL with a function username/app-alias", () => {
|
|
const alias = "fal-ai/text-to-image";
|
|
const url = buildUrl(alias);
|
|
expect(url).toMatch(`fal.run/${alias}`);
|
|
});
|
|
});
|