From f6c615531b3d98e9f6ba928cf550e97ba2f8a4ab Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 13 Mar 2018 02:28:51 +0100 Subject: [PATCH] INSA: adapt tests to 1.16 protocol, add to test/index.js --- test/index.js | 1 + test/insa.js | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/test/index.js b/test/index.js index b278e8d2..8fbdc852 100644 --- a/test/index.js +++ b/test/index.js @@ -3,4 +3,5 @@ require('./db') require('./vbb') require('./oebb') +require('./insa') require('./throttle') diff --git a/test/insa.js b/test/insa.js index 940f36d3..86008982 100644 --- a/test/insa.js +++ b/test/insa.js @@ -122,9 +122,9 @@ test('Magdeburg Hbf to 39104 Magdeburg, Sternstr. 10', co(function*(t) { const magdeburgHbf = '8010224' const sternStr = { type: 'location', - latitude: 52.118745, - longitude: 11.627117, - address: '39104 Magdeburg, Sternstr. 10' + latitude: 52.118414, + longitude: 11.422332, + address: 'Magdeburg - Altenstadt, Sternstraße 10' } const journeys = yield client.journeys(magdeburgHbf, sternStr, { @@ -148,9 +148,9 @@ test('Magdeburg Hbf to 39104 Magdeburg, Sternstr. 10', co(function*(t) { const d = lastLeg.destination assertValidAddress(t, d) - t.equal(d.address, '39104 Magdeburg, Sternstr. 10') - t.ok(isRoughlyEqual(0.0001, d.latitude, 52.118745)) - t.ok(isRoughlyEqual(0.0001, d.longitude, 11.627117)) + t.equal(d.address, 'Magdeburg - Altenstadt, Sternstraße 10') + t.ok(isRoughlyEqual(0.0001, d.latitude, 52.118414)) + t.ok(isRoughlyEqual(0.0001, d.longitude, 11.422332)) t.end() }))