Skip to content

Commit

Permalink
Fix EquipmentProperties test
Browse files Browse the repository at this point in the history
  • Loading branch information
opyh committed Feb 22, 2023
1 parent ea40a72 commit 1385ce4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EquipmentProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getIntercomSchemaDefinition, Intercom } from './Intercom.js';
import { getInteractableSchemaDefinition, Interactable } from './Interactable.js';
import validateUrl from './validateUrl.js';
import IETFLanguageCodeSchemaKeyDefinition, { IETFLanguageTag } from './ietfLanguageTags.js';
import { Seat } from './Seat.js';
import { getSeatSchemaDefinition, Seat } from './Seat.js';

export const EquipmentTypes = [
'bed',
Expand Down Expand Up @@ -534,5 +534,6 @@ export const getEquipmentPropertiesSchemaDefinition: () => SchemaDefinition = ()
type: String,
allowedValues: w3cAccessibilityHazards,
},
...getPrefixedSchemaDefinition('seat', getSeatSchemaDefinition()),
...getInteractableSchemaDefinition(EquipmentInteractionsSet),
});
2 changes: 2 additions & 0 deletions src/equipmentPropertiesFixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { EquipmentProperties } from './EquipmentProperties.js';
import { Complete } from './Complete.js';
import doorFixture from './doorFixture.js';
import intercomFixture from './intercomFixture.js';
import seatFixture from './seatFixture.js';

const equipmentPropertiesFixture: Complete<EquipmentProperties> = {
description: { en: 'string' },
Expand Down Expand Up @@ -50,6 +51,7 @@ const equipmentPropertiesFixture: Complete<EquipmentProperties> = {
accessibilityFeature: ['braille'],
accessibilityHazard: ['noFlashingHazard'],
hasLandings: true,
seat: seatFixture,
interactions: {
use: {},
selectFloor: {
Expand Down

0 comments on commit 1385ce4

Please sign in to comment.