Files
web/apps/scandic-web/contexts/SelectRate/getTotalPrice.test.ts
Bianca Widstam 0e00e8eaf1 Merged in fix/SW-3021-vouchers (pull request #2719)
fix(SW-3021): add pluralization support for vouchers

* fix(SW-3021): add pluralization support for vouchers


Approved-by: Anton Gunnarsson
2025-08-28 08:27:03 +00:00

22 lines
466 B
TypeScript

import { describe, expect, it } from "vitest"
import { getTotalPrice } from "./getTotalPrice"
describe("getTotalPrice", () => {
it("should return null when no rates are selected", () => {
const result = getTotalPrice({
selectedRates: [],
useMemberPrices: false,
})
expect(result).toEqual({
local: {
currency: "Unknown",
price: 0,
regularPrice: undefined,
},
requested: undefined,
})
})
})