Merged in feat/SW-1169-map-bedtype-icons (pull request #1113)
Feat/SW-1169 map bedtype icons * feat(SW-1169): Added bed icons * fix(SW-1169): update fill rule property * fix(SW-1169): update clip rule prop * feat(SW-1169): Added way of rendering bed type icons with extra beds * feat(SW-1169): update room schema to map mainBed to enum * feat(SW-1169): update bedtype icon color * feat(SW-1169): transform unknown bed types to BedTypeEnum.Other * test: update mock data with new schema Approved-by: Christel Westerberg
This commit is contained in:
@@ -2,6 +2,7 @@ import { describe, expect, test } from "@jest/globals"
|
||||
import { act, renderHook } from "@testing-library/react"
|
||||
import { type PropsWithChildren } from "react"
|
||||
|
||||
import { BedTypeEnum } from "@/constants/booking"
|
||||
import { Lang } from "@/constants/languages"
|
||||
|
||||
import EnterDetailsProvider from "@/providers/EnterDetailsProvider"
|
||||
@@ -43,6 +44,7 @@ const booking = {
|
||||
|
||||
const bedTypes = [
|
||||
{
|
||||
type: BedTypeEnum.King,
|
||||
description: "King-size bed",
|
||||
value: "SKS",
|
||||
size: {
|
||||
@@ -50,8 +52,10 @@ const bedTypes = [
|
||||
max: 200,
|
||||
},
|
||||
roomTypeCode: "SKS",
|
||||
extraBed: undefined,
|
||||
},
|
||||
{
|
||||
type: BedTypeEnum.Queen,
|
||||
description: "Queen-size bed",
|
||||
value: "QZ",
|
||||
size: {
|
||||
@@ -59,6 +63,7 @@ const bedTypes = [
|
||||
max: 200,
|
||||
},
|
||||
roomTypeCode: "QZ",
|
||||
extraBed: undefined,
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user