11import { createCheckers } from "ts-interface-checker" ;
22
33// checker model
4- import GbfsVersionsTI from '../v3.1-RC /test-type-checkers/gbfs_versions-ti' ;
5- import GbfsTI from '../v3.1-RC /test-type-checkers/gbfs-ti' ;
6- import GeofencingZonesTI from '../v3.1-RC /test-type-checkers/geofencing_zones-ti' ;
7- import ManifestTI from '../v3.1-RC /test-type-checkers/manifest-ti' ;
8- import StationsInformationTI from '../v3.1-RC /test-type-checkers/station_information-ti' ;
9- import StationStatusTI from '../v3.1-RC /test-type-checkers/station_status-ti' ;
10- import SystemAlertsTI from "../v3.1-RC /test-type-checkers/system_alerts-ti" ;
11- import SystemInformationTI from '../v3.1-RC /test-type-checkers/system_information-ti' ;
12- import SystemPricingPlansTI from '../v3.1-RC /test-type-checkers/system_pricing_plans-ti'
13- import SystemRegionsTI from "../v3.1-RC /test-type-checkers/system_regions-ti" ;
14- import VehicleStatusTI from "../v3.1-RC /test-type-checkers/vehicle_status-ti" ;
15- import VehicleTypesTI from '../v3.1-RC /test-type-checkers/vehicle_types-ti' ;
4+ import GbfsVersionsTI from '../v3.1-RC2 /test-type-checkers/gbfs_versions-ti' ;
5+ import GbfsTI from '../v3.1-RC2 /test-type-checkers/gbfs-ti' ;
6+ import GeofencingZonesTI from '../v3.1-RC2 /test-type-checkers/geofencing_zones-ti' ;
7+ import ManifestTI from '../v3.1-RC2 /test-type-checkers/manifest-ti' ;
8+ import StationsInformationTI from '../v3.1-RC2 /test-type-checkers/station_information-ti' ;
9+ import StationStatusTI from '../v3.1-RC2 /test-type-checkers/station_status-ti' ;
10+ import SystemAlertsTI from "../v3.1-RC2 /test-type-checkers/system_alerts-ti" ;
11+ import SystemInformationTI from '../v3.1-RC2 /test-type-checkers/system_information-ti' ;
12+ import SystemPricingPlansTI from '../v3.1-RC2 /test-type-checkers/system_pricing_plans-ti'
13+ import SystemRegionsTI from "../v3.1-RC2 /test-type-checkers/system_regions-ti" ;
14+ import VehicleStatusTI from "../v3.1-RC2 /test-type-checkers/vehicle_status-ti" ;
15+ import VehicleTypesTI from '../v3.1-RC2 /test-type-checkers/vehicle_types-ti' ;
1616
1717// checkers
1818const { GbfsVersions } = createCheckers ( GbfsVersionsTI ) ;
@@ -28,23 +28,23 @@ const { SystemRegions } = createCheckers(SystemRegionsTI);
2828const { VehicleStatus } = createCheckers ( VehicleStatusTI ) ;
2929const { VehicleTypes } = createCheckers ( VehicleTypesTI ) ;
3030
31- // json test data: these are gbfs with no errors for v3.1-RC
32- import gbfsVersionsJson from '../../../testFixtures/v3.1-RC /gbfs_versions.json' ;
33- import gbfsJson from '../../../testFixtures/v3.1-RC /gbfs.json' ;
34- import geofencingZonesJson from '../../../testFixtures/v3.1-RC /geofencing_zones.json' ;
35- import manifestJson from '../../../testFixtures/v3.1-RC /manifest.json' ;
36- import stationInformationJson from '../../../testFixtures/v3.1-RC /station_information.json' ;
37- import stationStatusJson from '../../../testFixtures/v3.1-RC /station_status.json' ;
38- import systemAlertsJson from '../../../testFixtures/v3.1-RC /system_alerts.json' ;
39- import systemInformationJson from '../../../testFixtures/v3.1-RC /system_information.json' ;
40- import systemPricingPlansJson from '../../../testFixtures/v3.1-RC /system_pricing_plans.json' ;
41- import systemRegionsJson from '../../../testFixtures/v3.1-RC /system_regions.json' ;
42- import vehicleStatusJson from '../../../testFixtures/v3.1-RC /vehicle_status.json' ;
43- import vehicleTypesJson from '../../../testFixtures/v3.1-RC /vehicle_types.json' ;
31+ // json test data: these are gbfs with no errors for v3.1-RC2
32+ import gbfsVersionsJson from '../../../testFixtures/v3.1-RC2 /gbfs_versions.json' ;
33+ import gbfsJson from '../../../testFixtures/v3.1-RC2 /gbfs.json' ;
34+ import geofencingZonesJson from '../../../testFixtures/v3.1-RC2 /geofencing_zones.json' ;
35+ import manifestJson from '../../../testFixtures/v3.1-RC2 /manifest.json' ;
36+ import stationInformationJson from '../../../testFixtures/v3.1-RC2 /station_information.json' ;
37+ import stationStatusJson from '../../../testFixtures/v3.1-RC2 /station_status.json' ;
38+ import systemAlertsJson from '../../../testFixtures/v3.1-RC2 /system_alerts.json' ;
39+ import systemInformationJson from '../../../testFixtures/v3.1-RC2 /system_information.json' ;
40+ import systemPricingPlansJson from '../../../testFixtures/v3.1-RC2 /system_pricing_plans.json' ;
41+ import systemRegionsJson from '../../../testFixtures/v3.1-RC2 /system_regions.json' ;
42+ import vehicleStatusJson from '../../../testFixtures/v3.1-RC2 /vehicle_status.json' ;
43+ import vehicleTypesJson from '../../../testFixtures/v3.1-RC2 /vehicle_types.json' ;
4444
4545// Date objects cannot be represented in JSON
4646// Manual checks for dates are required
47- describe ( 'GBFS Validator v3.1-RC ' , ( ) => {
47+ describe ( 'GBFS Validator v3.1-RC2 ' , ( ) => {
4848 it ( 'should check if gbfs_versions is valid' , ( ) => {
4949 expect ( ( ) => {
5050 GbfsVersions . check ( gbfsVersionsJson ) ;
0 commit comments