returns true when its an array
|
- |
returns true when aray is not empty
|
- |
returns true when all elems verify the rule
|
- |
returns true when array contains 3 elems
|
- |
returns false when array contains elements that dont match
|
- |
returns true when elements verify the validator
|
- |
returns true when array is one of validator
|
- |
boolean returns true if true tested
|
- |
boolean returns true if false tested
|
- |
throws error when test doesn't exist
|
- |
returns false when not date
|
- |
returns true when date is after a specific date
|
- |
returns true when date is before a specific date
|
- |
returns true when date is between two dates
|
- |
returns true when two dates are equal
|
- |
returns true when date is one of array
|
- |
type email false
|
- |
type email
|
- |
type email true
|
- |
type user and domain true
|
- |
type float returns true when float
|
- |
type float returns false when int
|
- |
type float returns true when bigger than 100
|
- |
type float returns true when smaller than 100
|
- |
type float returns true when two floats are equal
|
- |
type float returns true when is one of array
|
- |
type float returns false when is not one of array
|
- |
returns true if function
|
- |
returns true if function result matches a Rule
|
- |
returns false if function result doesn't match a Rule
|
- |
type rule.getError() returns array of errors when input is wrong
|
- |
type rule.getError() call error function (if the error of the rule is function)
|
- |
type test not int is false
|
- |
type test
|
- |
max is true if < 100
|
- |
max is false if > 100
|
- |
equal returns true if 100
|
- |
custom rulle should return true
|
- |
custom rulle should return false
|
- |
mixng rulles returns true
|
- |
mixng rulles returns false
|
- |
throws error when test doesn't exist
|
- |
returns true if optional set to true and patram undefined
|
- |
returns false if optional set to true and patram dont match
|
- |
returns true if optional set to true and patram match
|
- |
returns true if optional set to false and patram match
|
- |
returns false if optional set to false and patram dont match
|
- |
returns true if int or float or number
|
- |
reterns false if not int or float
|
- |
reterns false if not (int and number)
|
- |
reterns true if int and number
|
- |
type test not number is false
|
- |
type test
|
- |
max is true if < 100
|
- |
max is false if > 100
|
- |
equal returns true if 100
|
- |
custom rulle should return true
|
- |
custom rulle should return false
|
- |
mixng rulles returns true
|
- |
mixng rulles returns false
|
- |
throws error when test doesn't exist
|
- |
returns true if optional set to true and patram undefined
|
- |
returns false if optional set to true and patram dont match
|
- |
returns true if optional set to true and patram match
|
- |
returns true if optional set to false and patram match
|
- |
returns false if optional set to false and patram dont match
|
- |
type test not password is false
|
- |
number
|
- |
uppercase
|
- |
matcesOneOf
|
- |
matcesOneOf without mach
|
- |
matchesAllOf
|
- |
matchesAllOf false
|
- |
specialChars false
|
- |
good password
|
- |
adding a custom rule
|
- |
throwing when type not exist
|
- |
throwing when type is undefined
|
- |
non valid string boolean
|
- |
valid string boolean
|
- |
string boolean is true
|
- |
type test not valid string is false
|
- |
valid date
|
- |
date is after
|
- |
date is before
|
- |
date is equal
|
- |
type test not number is false
|
- |
type test float number is false
|
- |
type test float number is true
|
- |
type test max string-number is true
|
- |
type test max string-number is false
|
- |
type test min string-number is false
|
- |
type test min string-number is true
|
- |
type test string-number is equal to 5
|
- |
type test string-number is not equal to 5
|
- |
type test not number is false
|
- |
type test int number is false
|
- |
type test int number is true
|
- |
type test max string-number is true
|
- |
type test max string-number is false
|
- |
type test min string-number is false
|
- |
type test min string-number is true
|
- |
type test string-number is equal to 5
|
- |
type test string-number is not equal to 5
|
- |
type string returns true when a string
|
- |
type string returns false when not string
|
- |
type string returns true when matches a REGEX
|
- |
type string returns false when doesen't matches a REGEX
|
- |
throws error when test doesn't exist
|
- |
type string returns true when string not empty
|
- |
type string returns false when string empty
|
- |
type string returns true when two strings are equal
|
- |
type string returns true when string minLength
|
- |
type email false
|
- |
type url false
|
- |
type url true
|
- |
type domain true
|
- |
type protocol true
|
- |
looseEqual object false
|
- |
looseEqual object true
|
- |
looseEqual object and array fals
|
- |
flatten Object
|
- |
test the hole object to be true
|
- |
test the hole object to be false extra values
|
- |
test the hole object to be false
|
- |
test custom
|
- |
test getErrors must return an array of errors
|
- |
test getErrors return array of errors even with object as rule error
|
- |
test test over an array of values
|
- |
test over multiple values and return -1
|
- |
test getValFromPath returns 5 path is correct
|
- |
test travers
|
- |