From b4e7793426a4b7285ed3c6f80b2ffb785137cdfe Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Fri, 4 Sep 2015 14:48:58 -0400 Subject: [PATCH] Fix reference to geoname This is just in a unit test, so it technically passes, but geonames is not a valid layer option (geoname, singular, is used instead), so it's best to correct. --- test/unit/helper/types.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/helper/types.js b/test/unit/helper/types.js index b05db174..d56f12d2 100644 --- a/test/unit/helper/types.js +++ b/test/unit/helper/types.js @@ -33,10 +33,10 @@ module.exports.tests.address_parser = function(test, common) { module.exports.tests.layers_parameter = function(test, common) { test('layers parameter specifies only some layers', function(t) { var cleaned_types = { - from_layers: ['geonames'] + from_layers: ['geoname'] }; var actual = types(cleaned_types); - var expected = ['geonames']; + var expected = ['geoname']; t.deepEqual(actual, expected, 'only types specified by layers parameter returned'); t.end(); }); @@ -45,11 +45,11 @@ module.exports.tests.layers_parameter = function(test, common) { module.exports.tests.layers_parameter_and_address_parser = function(test, common) { test('layers parameter and address parser present', function(t) { var cleaned_types = { - from_layers: ['geonames'], + from_layers: ['geoname'], from_address_parser: ['admin0'] // simplified return value from address parse }; var actual = types(cleaned_types); - var expected = ['geonames']; + var expected = ['geoname']; t.deepEqual(actual, expected, 'layers parameter overrides address parser completely'); t.end(); });