feat(domain): add domain types
This commit is contained in:
1 parent
26752aa225
commit
e1ac6d9fac
2 files changed
+106
No files matched your search
@@ -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);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user