浏览代码

Add failing tests

bubble
Kyle Shockey 6 年前
父节点
当前提交
d92a27bdab
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. +8
    -0
      test/core/utils.js

+ 8
- 0
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,


正在加载...
取消
保存