Add test for negative num

Testing valid negative number with min and max
This commit is contained in:
HelderSepu
2017-09-24 15:45:42 -04:00
parent 7d40d72281
commit 515726b386

View File

@@ -524,6 +524,17 @@ describe("utils", function() {
})
result = validateParam( param, false )
expect( result ).toEqual( [] )
// valid negative number with min and max
param = fromJS({
required: true,
type: "number",
value: -10,
minimum: -50,
maximum: -5
})
result = validateParam( param, false )
expect( result ).toEqual( [] )
})
it("validates optional numbers", function() {