feat(domain): add domain types

This commit is contained in:
Lucas Winther committed 2026-09-01 16:22:40 +02:00
1 parent 26752aa225
commit e1ac6d9fac
2 files changed
+106

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { test, expect } from "bun:test";
import { CURRENCIES, CURRENCY_DIGITS } from "./types.ts";
test("supported currencies are exactly DKK, USD, EUR", () => {
expect(CURRENCIES).toEqual(["DKK", "USD", "EUR"]);
});
test("every supported currency has 2 decimal digits", () => {
for (const c of CURRENCIES) {
expect(CURRENCY_DIGITS[c]).toBe(2);
}
});