fix(SW-3021): add pluralization support for vouchers * fix(SW-3021): add pluralization support for vouchers Approved-by: Anton Gunnarsson
22 lines
466 B
TypeScript
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,
|
|
})
|
|
})
|
|
})
|