Merged in chore/add-tests-to-getTotalPrice (pull request #3178)
chore: Add tests to getTotalPrice * Add tests to getTotalPrice Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -360,11 +360,6 @@ export function getRequestedAdditionalPrice(
|
||||
}
|
||||
}
|
||||
|
||||
type TRoom = Pick<
|
||||
RoomState["room"],
|
||||
"adults" | "breakfast" | "guest" | "roomFeatures" | "roomRate"
|
||||
>
|
||||
|
||||
type CorporateCheckRoom = PriceCalculationRoom & {
|
||||
roomRate: {
|
||||
corporateCheque: {
|
||||
@@ -669,6 +664,11 @@ export function getRegularPrice(
|
||||
return totalPrice
|
||||
}
|
||||
|
||||
type TRoom = Pick<
|
||||
RoomState["room"],
|
||||
"adults" | "breakfast" | "guest" | "roomFeatures" | "roomRate"
|
||||
>
|
||||
|
||||
export function getTotalPrice(
|
||||
rooms: TRoom[],
|
||||
isMember: boolean,
|
||||
|
||||
Reference in New Issue
Block a user