Explorar el Código

Add failing tests

bubble
Kyle Shockey hace 6 años
padre
commit
d92a27bdab
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. +8
    -0
      test/core/utils.js

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

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


Cargando…
Cancelar
Guardar