Sites per domain with two skins (PhotoReport, ShootYourMove) in apps/site (Next.js); public, unlisted and private galleries with watermarked photos; products, cart, orders with VIES reverse charge; the organization's own Stripe Checkout and signed webhooks; bought files rendered from the original with edits and IPTC, emailed; Vendas module in the app. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
11 lines
444 B
TypeScript
11 lines
444 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { eur, eventTitle } from "./format";
|
|
|
|
describe("format", () => {
|
|
it("shows euros the Portuguese way and names matches", () => {
|
|
expect(eur(1230).replace(/\s/g, " ")).toBe("12,30 €");
|
|
expect(eventTitle({ home: "SC Braga", away: "Sporting CP" })).toBe("SC Braga x Sporting CP");
|
|
expect(eventTitle({ home: "Gala do Desporto", away: null })).toBe("Gala do Desporto");
|
|
});
|
|
});
|