Skip to content

Commit

Permalink
Restore old behavior of isInt in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavohenke committed Nov 16, 2016
1 parent 5b9232e commit 1efdc52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/regexRouteTest.js
Expand Up @@ -6,7 +6,9 @@ var app;
var errorMessage = 'Parameter is not a 3 digit integer';

function validation(req, res) {
req.assert(0, errorMessage).len(3, 3).isInt();
req.assert(0, errorMessage).len(3, 3).isInt({
allow_leading_zeroes: false
});

var errors = req.validationErrors();
if (errors) {
Expand Down

0 comments on commit 1efdc52

Please sign in to comment.