Skip to content

Commit

Permalink
SNCB/NMBS: document profile as broken πŸ“, skip E2E/integration tests βœ…
Browse files Browse the repository at this point in the history
back-port of 2639448 to 5.x

related: #284
  • Loading branch information
derhuerst committed Feb 28, 2024
1 parent 496df86 commit 32021bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion p/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ HAFAS endpoint | wrapper library | docs | example code | profile name
[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)
[Swiss Railways (SBB)](https://en.wikipedia.org/wiki/Swiss_Federal_Railways) | - | [docs](sbb/readme.md) | [example](sbb/example.js) | [`sbb`](sbb)
[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)
[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)
[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)
[*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)
[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)
[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)
Expand Down
2 changes: 2 additions & 0 deletions p/sncb/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# SNCB profile for `hafas-client`

*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.

[*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`.

## Usage
Expand Down
8 changes: 4 additions & 4 deletions test/e2e/sncb.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const gentPaddenhoek = {
latitude: 51.051691, longitude: 3.724914,
}

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

tap.test('trip details', async (t) => {
tap.skip('trip details', async (t) => {
const res = await client.journeys(gentStPieters, bruxellesMidi, {
results: 1, departure: when
})
Expand All @@ -70,7 +70,7 @@ tap.test('trip details', async (t) => {
t.end()
})

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

// todo: nearby

tap.test('radar', async (t) => {
tap.skip('radar', async (t) => {
const vehicles = await client.radar({
north: 51.065,
west: 3.688,
Expand Down

0 comments on commit 32021bc

Please sign in to comment.