feat(housekeeping): deliver hotel operations
This commit is contained in:
@@ -63,6 +63,24 @@ const economyRouteMessageKeys = [
|
||||
"pages.housekeeping.routes.economy.rewards.calendar-detail",
|
||||
] as const;
|
||||
|
||||
const hotelRouteMessageKeys = [
|
||||
"pages.housekeeping.routes.hotel.rooms",
|
||||
"pages.housekeeping.routes.hotel.room-detail",
|
||||
"pages.housekeeping.routes.hotel.room-furni",
|
||||
"pages.housekeeping.routes.hotel.navigation",
|
||||
"pages.housekeeping.routes.hotel.radio.overview",
|
||||
"pages.housekeeping.routes.hotel.radio.settings",
|
||||
"pages.housekeeping.routes.hotel.radio.monitoring",
|
||||
"pages.housekeeping.routes.hotel.radio.moderation",
|
||||
"pages.housekeeping.routes.hotel.radio.autodj",
|
||||
"pages.housekeeping.routes.hotel.radio.history",
|
||||
"pages.housekeeping.routes.hotel.radio.points",
|
||||
"pages.housekeeping.routes.hotel.radio.ranks",
|
||||
"pages.housekeeping.routes.hotel.radio.api-keys",
|
||||
"pages.housekeeping.routes.hotel.radio.banners",
|
||||
"pages.housekeeping.routes.hotel.radio.embed",
|
||||
] as const;
|
||||
|
||||
const expectedDomainMessages = [
|
||||
{
|
||||
id: "operations",
|
||||
@@ -136,6 +154,12 @@ describe("housekeeping localization contract", () => {
|
||||
expect((message as string).trim(), key).not.toBe("");
|
||||
}
|
||||
|
||||
for (const key of hotelRouteMessageKeys) {
|
||||
const message = resolveMessage(messages, key);
|
||||
expect(message, key).toEqual(expect.any(String));
|
||||
expect((message as string).trim(), key).not.toBe("");
|
||||
}
|
||||
|
||||
for (const [index, expected] of expectedDomainMessages.entries()) {
|
||||
const manifest = HOUSEKEEPING_MANIFESTS[index];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user