@transportme/load-ptv-gtfs 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -197,7 +197,8 @@ export class GTFSStop {
197
197
  suburb: this.suburb,
198
198
  services: [],
199
199
  screenServices: [],
200
- stopType: STOP_TYPE[this.locationType]
200
+ stopType: STOP_TYPE[this.locationType],
201
+ parentStopGTFSID: this.parentStopGTFSID
201
202
  }
202
203
  }
203
204
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transportme/load-ptv-gtfs",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "",
5
5
  "main": "index.mjs",
6
6
  "scripts": {
@@ -336,7 +336,10 @@ describe('The GTFS Stops Loader', () => {
336
336
  expect(stopData.bays.find(bay => bay.stopGTFSID === 'vic:rail:CHL_DP3').stopType).to.equal('generic')
337
337
  expect(stopData.bays.find(bay => bay.stopGTFSID === 'vic:rail:CHL_EN1').stopType).to.equal('entrance')
338
338
 
339
+ expect(stopData.bays.find(bay => bay.stopGTFSID === '14331').parentStopGTFSID).to.equal('vic:rail:CHL')
340
+ expect(stopData.bays.find(bay => bay.stopGTFSID === 'vic:rail:CHL').parentStopGTFSID).to.be.null
341
+
339
342
  // TODO: Find out what the Connex stop is for
340
- expect(stopData.cleanNames).to.equal(['clifton-hill-railway-station', 'connex'])
343
+ expect(stopData.cleanNames).to.deep.equal(['clifton-hill-railway-station', 'connex'])
341
344
  })
342
345
  })