From 4ecbf0edca9717bfd0bb1e508e86dc3562ee1b28 Mon Sep 17 00:00:00 2001 From: Whytro Date: Wed, 22 Mar 2023 22:16:13 +0900 Subject: [PATCH] Re-enable default_radius flag 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 2ebfe5071..764be8fee 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_radius argument', function(assert) { -// assert.plan(1); -// var osrm = new OSRM({default_radius: 1}); -// assert.ok(osrm); -// }); +test('constructor: takes a default_radius argument', function(assert) { + assert.plan(1); + var osrm = new OSRM({default_radius: 1}); + assert.ok(osrm); +}); -// test('constructor: throws if default_radius is not a number', function(assert) { -// assert.plan(2); -// assert.throws(function() { new OSRM({default_radius: 'abc'}); }, /default_radius must be an integral number/, 'Does not accept string'); -// assert.ok(new OSRM({default_radius: 1}), 'Does accept number'); -// }); +test('constructor: throws if default_radius is not a number', function(assert) { + assert.plan(2); + assert.throws(function() { new OSRM({default_radius: 'abc'}); }, /default_radius must be an integral number/, 'Does not accept string'); + assert.ok(new OSRM({default_radius: 1}), 'Does accept number'); +}); test('constructor: parses custom limits', function(assert) { assert.plan(1);