From 5721841fb37e780bbceffe9ac01203ab6d9f5bbb Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Thu, 17 Sep 2015 15:14:01 -0400 Subject: [PATCH] Clarify name and error message in ids test --- test/unit/sanitiser/place.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/sanitiser/place.js b/test/unit/sanitiser/place.js index 420f439b..184ed09b 100644 --- a/test/unit/sanitiser/place.js +++ b/test/unit/sanitiser/place.js @@ -196,10 +196,10 @@ module.exports.tests.de_dupe = function(test, common) { }; module.exports.tests.invalid_params = function(test, common) { - test('invalid params', function(t) { + test('no params', function(t) { var req = { query: {} }; sanitize( req, function(){ - t.equal( req.errors[0], defaultError, 'handle invalid params gracefully'); + t.equal( req.errors[0], 'invalid param \'ids\': text length, must be >0', 'error for missing `ids` param'); t.deepEqual( req.warnings, [], 'no warnings' ); t.end(); });