Skip to content

Commit 32021bc

Browse files
committed
SNCB/NMBS: document profile as broken πŸ“, skip E2E/integration tests βœ…
back-port of 2639448 to 5.x related: #284
1 parent 496df86 commit 32021bc

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

β€Žp/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ HAFAS endpoint | wrapper library | docs | example code | profile name
1111
[Deutsche Bahn (DB)](https://en.wikipedia.org/wiki/Deutsche_Bahn) | [`db-hafas`](https://github.com/public-transport/db-hafas) | [docs](db/readme.md) | [example](db/example.js) | [`db`](db)
1212
[Swiss Railways (SBB)](https://en.wikipedia.org/wiki/Swiss_Federal_Railways) | - | [docs](sbb/readme.md) | [example](sbb/example.js) | [`sbb`](sbb)
1313
[Polskie Koleje PaΕ„stwowe (PKP)](https://en.wikipedia.org/wiki/Polish_State_Railways) | [`pkp-hafas`](https://github.com/juliuste/pkp-hafas) | [docs](pkp/readme.md) | [example](pkp/example.js) | [`pkp`](pkp)
14-
[Belgian National Railways (SNCB/NMBS)](https://en.wikipedia.org/wiki/National_Railway_Company_of_Belgium) | - | [docs](sncb/readme.md) | [example](sncb/example.js) | [`sncb`](sncb)
14+
[Belgian National Railways (SNCB/NMBS)](https://en.wikipedia.org/wiki/National_Railway_Company_of_Belgium) | - | [docs](sncb/readme.md) | [example](sncb/example.js) | [`sncb`](sncb) (currently broken)
1515
[*IarnrΓ³d Γ‰ireann* (Irish Rail)](https://en.wikipedia.org/wiki/IarnrΓ³d_Γ‰ireann) | - | [docs](irish-rail/readme.md) | [example](irish-rail/example.js) | [`irish-rail`](irish-rail)
1616
[Berlin & Brandenburg public transport (VBB)](https://en.wikipedia.org/wiki/Verkehrsverbund_Berlin-Brandenburg) | [`vbb-hafas`](https://github.com/public-transport/vbb-hafas) | [docs](vbb/readme.md) | [example](vbb/example.js) | [`vbb`](vbb)
1717
[Berlin public transport (BVG)](https://en.wikipedia.org/wiki/Berliner_Verkehrsbetriebe) | [`bvg-hafas`](https://github.com/public-transport/bvg-hafas) | [docs](bvg/readme.md) | [example](bvg/example.js) | [`bvg`](bvg)

β€Žp/sncb/readme.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SNCB profile for `hafas-client`
22

3+
*Note:* **This profile is currently broken** because [SNCB has switched the HAFAS API style](https://github.com/public-transport/hafas-client/issues/284) and we haven't migrated to the new API.
4+
35
[*SociΓ©tΓ© nationale des chemins de fer belges (SNCB)*/*Nationale Maatschappij der Belgische Spoorwegen (NMBS)*](https://en.wikipedia.org/wiki/National_Railway_Company_of_Belgium) is the major public transport provider of [Belgium](https://en.wikipedia.org/wiki/Belgium). This profile adds *SNCB*-specific customizations to `hafas-client`.
46

57
## Usage

β€Žtest/e2e/sncb.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const gentPaddenhoek = {
3636
latitude: 51.051691, longitude: 3.724914,
3737
}
3838

39-
tap.test('journeys – Gent Sant Pieters to Bruxelles Midi', async (t) => {
39+
tap.skip('journeys – Gent Sant Pieters to Bruxelles Midi', async (t) => {
4040
const res = await client.journeys(gentStPieters, bruxellesMidi, {
4141
results: 4,
4242
departure: when,
@@ -56,7 +56,7 @@ tap.test('journeys – Gent Sant Pieters to Bruxelles Midi', async (t) => {
5656
// todo: via works – with detour
5757
// todo: without detour
5858

59-
tap.test('trip details', async (t) => {
59+
tap.skip('trip details', async (t) => {
6060
const res = await client.journeys(gentStPieters, bruxellesMidi, {
6161
results: 1, departure: when
6262
})
@@ -70,7 +70,7 @@ tap.test('trip details', async (t) => {
7070
t.end()
7171
})
7272

73-
tap.test('arrivals at Bruxelles Midi', async (t) => {
73+
tap.skip('arrivals at Bruxelles Midi', async (t) => {
7474
const arrivals = await client.arrivals(bruxellesMidi, {
7575
duration: 10, when
7676
})
@@ -86,7 +86,7 @@ tap.test('arrivals at Bruxelles Midi', async (t) => {
8686

8787
// todo: nearby
8888

89-
tap.test('radar', async (t) => {
89+
tap.skip('radar', async (t) => {
9090
const vehicles = await client.radar({
9191
north: 51.065,
9292
west: 3.688,

0 commit comments

Comments
Β (0)