X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/62e52aea177da99ce119d9eaef86f5b153db86d6..ff984f72c904d8c4c1acbc894ac04a7f1546a80b:/test/unit/helpers.js diff --git a/test/unit/helpers.js b/test/unit/helpers.js index ed57c03..103f221 100644 --- a/test/unit/helpers.js +++ b/test/unit/helpers.js @@ -10,6 +10,7 @@ describe('Helpers', function () { assert.deepStrictEqual(identifyLinkInQuery('https://www.openstreetmap.org/relation/1234#map=11/41.2388/-8.3867'), ['R', 1234]); assert.deepStrictEqual(identifyLinkInQuery('n1234'), ['N', 1234]); assert.deepStrictEqual(identifyLinkInQuery('W1234'), ['W', 1234]); + assert.deepStrictEqual(identifyLinkInQuery('R-123'), ['R', -123]); }); it('.formatLabel', function () {