From d92a27bdabff1a1c560a6d1014f531dba9636d1d Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Fri, 10 Nov 2017 10:40:03 -0800 Subject: [PATCH] Add failing tests --- test/core/utils.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/core/utils.js b/test/core/utils.js index 918d8431..73861845 100644 --- a/test/core/utils.js +++ b/test/core/utils.js @@ -700,6 +700,14 @@ describe("utils", function() { } assertValidateParam(param, ["Required field is not provided"]) + // valid integer, but 0 is falsy in JS + param = { + required: true, + type: "integer", + value: 0 + } + assertValidateParam(param, []) + // valid integer param = { required: true,