From fb4bf248ac1bd356983e08ebf73fec6a9bd26b66 Mon Sep 17 00:00:00 2001 From: whytro Date: Tue, 21 Mar 2023 00:07:51 +0900 Subject: [PATCH] Disabled default radius NodeJS tests --- test/nodejs/index.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/nodejs/index.js b/test/nodejs/index.js index 779505ec2..7653b78af 100644 --- a/test/nodejs/index.js +++ b/test/nodejs/index.js @@ -112,17 +112,17 @@ test('constructor: throws if dataset_name is not a string', function(assert) { assert.throws(function() { new OSRM({dataset_name: "unsued_name___", shared_memory: true}); }, /Could not find shared memory region/, 'Does not accept wrong name'); }); -test('constructor: takes a default_bearing_radius argument', function(assert) { - assert.plan(1); - var osrm = new OSRM({default_bearing_radius: 1}); - assert.ok(osrm); -}); +// test('constructor: takes a default_bearing_radius argument', function(assert) { +// assert.plan(1); +// var osrm = new OSRM({default_bearing_radius: 1}); +// assert.ok(osrm); +// }); -test('constructor: throws if default_bearing_radius is not a number', function(assert) { - assert.plan(2); - assert.throws(function() { new OSRM({default_bearing_radius: 'abc'}); }, /default_bearing_radius must be an integral number/, 'Does not accept string'); - assert.ok(new OSRM({default_bearing_radius: 1}), 'Does accept number'); -}); +// test('constructor: throws if default_bearing_radius is not a number', function(assert) { +// assert.plan(2); +// assert.throws(function() { new OSRM({default_bearing_radius: 'abc'}); }, /default_bearing_radius must be an integral number/, 'Does not accept string'); +// assert.ok(new OSRM({default_bearing_radius: 1}), 'Does accept number'); +// }); test('constructor: parses custom limits', function(assert) { assert.plan(1);