Skip to content

Commit d92a27b

Browse files
committed
Add failing tests
1 parent 076f32b commit d92a27b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/core/utils.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,14 @@ describe("utils", function() {
700700
}
701701
assertValidateParam(param, ["Required field is not provided"])
702702

703+
// valid integer, but 0 is falsy in JS
704+
param = {
705+
required: true,
706+
type: "integer",
707+
value: 0
708+
}
709+
assertValidateParam(param, [])
710+
703711
// valid integer
704712
param = {
705713
required: true,

0 commit comments

Comments
 (0)