Ver a proveniência

Add failing tests

bubble
Kyle Shockey há 6 anos
ascendente
cometimento
d92a27bdab
1 ficheiros alterados com 8 adições e 0 eliminações
  1. +8
    -0
      test/core/utils.js

+ 8
- 0
test/core/utils.js Ver ficheiro

@@ -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,


Carregando…
Cancelar
Guardar