From 6c466d13ff47634bcfcdc2be5f4b348b8e61077b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Tue, 17 Apr 2018 11:36:33 +0200 Subject: [PATCH] Typo --- lib/cartodb/middleware/coordinates.js | 4 ++-- .../unit/cartodb/middlewares/coordinates.test.js | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/cartodb/middleware/coordinates.js b/lib/cartodb/middleware/coordinates.js index 3d1e54af..d0840393 100644 --- a/lib/cartodb/middleware/coordinates.js +++ b/lib/cartodb/middleware/coordinates.js @@ -1,13 +1,13 @@ const positiveIntegerNumberRegExp = /^\d+$/; const integerNumberRegExp = /^-?\d+$/; const invalidZoomMessage = function (zoom) { - return `Invalid zoom value (${zoom}). It should be an integer number greather or equal to 0`; + return `Invalid zoom value (${zoom}). It should be an integer number greather than or equal to 0`; }; const invalidCoordXMessage = function (x) { return `Invalid coodinate 'x' value (${x}). It should be an integer number`; }; const invalidCoordYMessage = function (y) { - return `Invalid coodinate 'y' value (${y}). It should be an integer number greather or equal to 0`; + return `Invalid coodinate 'y' value (${y}). It should be an integer number greather than or equal to 0`; }; module.exports = function coordinates (validate = { z: true, x: true, y: true }) { diff --git a/test/unit/cartodb/middlewares/coordinates.test.js b/test/unit/cartodb/middlewares/coordinates.test.js index 43eb4a6c..11cd2626 100644 --- a/test/unit/cartodb/middlewares/coordinates.test.js +++ b/test/unit/cartodb/middlewares/coordinates.test.js @@ -16,7 +16,7 @@ describe('coordinates middleware', function () { coords(req, res, function (err) { assert.equal( err.message, - 'Invalid zoom value (-1). It should be an integer number greather or equal to 0' + 'Invalid zoom value (-1). It should be an integer number greather than or equal to 0' ); assert.equal(err.http_status, 400); done(); @@ -37,7 +37,7 @@ describe('coordinates middleware', function () { coords(req, res, function (err) { assert.equal( err.message, - 'Invalid zoom value (1.1). It should be an integer number greather or equal to 0' + 'Invalid zoom value (1.1). It should be an integer number greather than or equal to 0' ); assert.equal(err.http_status, 400); done(); @@ -58,7 +58,7 @@ describe('coordinates middleware', function () { coords(req, res, function (err) { assert.equal( err.message, - 'Invalid zoom value (0.1). It should be an integer number greather or equal to 0' + 'Invalid zoom value (0.1). It should be an integer number greather than or equal to 0' ); assert.equal(err.http_status, 400); done(); @@ -80,7 +80,7 @@ describe('coordinates middleware', function () { coords(req, res, function (err) { assert.equal( err.message, - 'Invalid zoom value (wadus). It should be an integer number greather or equal to 0' + 'Invalid zoom value (wadus). It should be an integer number greather than or equal to 0' ); assert.equal(err.http_status, 400); done(); @@ -171,7 +171,7 @@ describe('coordinates middleware', function () { coords(req, res, function (err) { assert.equal( err.message, - `Invalid coodinate 'y' value (-1). It should be an integer number greather or equal to 0` + `Invalid coodinate 'y' value (-1). It should be an integer number greather than or equal to 0` ); assert.equal(err.http_status, 400); done(); @@ -192,7 +192,7 @@ describe('coordinates middleware', function () { coords(req, res, function (err) { assert.equal( err.message, - `Invalid coodinate 'y' value (1.1). It should be an integer number greather or equal to 0` + `Invalid coodinate 'y' value (1.1). It should be an integer number greather than or equal to 0` ); assert.equal(err.http_status, 400); done(); @@ -213,7 +213,7 @@ describe('coordinates middleware', function () { coords(req, res, function (err) { assert.equal( err.message, - `Invalid coodinate 'y' value (wadus). It should be an integer number greather or equal to 0` + `Invalid coodinate 'y' value (wadus). It should be an integer number greather than or equal to 0` ); assert.equal(err.http_status, 400); done(); @@ -249,7 +249,7 @@ describe('coordinates middleware', function () { coords(req, res, function (err) { assert.equal( err.message, - 'Invalid zoom value (-1.1). It should be an integer number greather or equal to 0' + 'Invalid zoom value (-1.1). It should be an integer number greather than or equal to 0' ); assert.equal(err.http_status, 400); done();