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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user