Merged in feat/SW-3163-remove-openinghours-name (pull request #2735)

feat(SW-3163): update opening hours schema name/nameEnglish

* feat(SW-3163): remove name

* fix(SW-3163): update schemas


Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-09-04 14:18:57 +00:00
parent 711589ff5e
commit 8f813eb9e7
9 changed files with 27 additions and 28 deletions

View File

@@ -27,7 +27,6 @@ describe('getGroupedOpeningHours', () => {
it('should group all days as closed', () => {
const allDaysClosed: OpeningHours = {
isActive: true,
name: 'Opening hours',
nameEnglish: 'Opening hours',
monday: {
isClosed: true,
@@ -86,7 +85,6 @@ describe('getGroupedOpeningHours', () => {
it('should group all days with same opening hours', () => {
const allDaysSameHours: OpeningHours = {
isActive: true,
name: 'Opening hours',
nameEnglish: 'Opening hours',
monday: {
openingTime: '09:00',
@@ -145,7 +143,6 @@ describe('getGroupedOpeningHours', () => {
it('should handle mixed opening hours', () => {
const mixedOpeningHours: OpeningHours = {
isActive: true,
name: 'Opening hours',
nameEnglish: 'Opening hours',
monday: {
openingTime: '09:00',
@@ -208,7 +205,6 @@ describe('getGroupedOpeningHours', () => {
it('should handle always open days', () => {
const someAlwaysOpen: OpeningHours = {
isActive: true,
name: 'Opening hours',
nameEnglish: 'Opening hours',
monday: {
alwaysOpen: true,
@@ -271,7 +267,6 @@ describe('getGroupedOpeningHours', () => {
it('should handle missing days', () => {
const missingDays: OpeningHours = {
isActive: true,
name: 'Opening hours',
nameEnglish: 'Opening hours',
monday: {
openingTime: '09:00',
@@ -306,7 +301,6 @@ describe('getGroupedOpeningHours', () => {
it('should not group non-consecutive days with same hours', () => {
const nonConsecutiveSameHours: OpeningHours = {
isActive: true,
name: 'Opening hours',
nameEnglish: 'Opening hours',
monday: {
openingTime: '09:00',
@@ -341,7 +335,6 @@ describe('getGroupedOpeningHours', () => {
it('should handle nullable opening/closing times', () => {
const nullableHours: OpeningHours = {
isActive: true,
name: 'Opening hours',
nameEnglish: 'Opening hours',
monday: {
openingTime: '',
@@ -376,7 +369,6 @@ describe('getGroupedOpeningHours', () => {
it('should handle inactive restaurant hours', () => {
const inactiveHours: OpeningHours = {
isActive: false,
name: 'Opening hours',
nameEnglish: 'Opening hours',
monday: {
openingTime: '09:00',