fal-js/libs/client/src/client.spec.ts
Daniel Rochetti 543b9208eb
feat: 1.0.0 release (#91)
* 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
2024-10-07 12:54:30 -07:00

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}`);
});
});